Changing location type to auto now that we have CORS setup
Making RESTAdapter hosts rely on environment variable