Factor out the model loading and api URL generation to a service. 
Factor out the model loading and api URL generation to a service. 
spendb/babbage.ui,pudo/angular-cubes,spendb/babbage.ui,openspending/babbage.ui,pudo/angular-cubes,openspending/babbage.ui