Refactoring Angular app: separation of controllers, OxRest service to call REST backend URLs