move restangular config to main.js