move api_host to $rootScope