Using resolve in stateProvider, directive for map. Also added MapService of common mapping functions. Changed the ioninLoading behavior