added autoApiPrefix var to change prefix of API path. removed Restangular