Refactored, changed some name conventions and added Restangular for REST endpoints handling.