AngularJS & REST best practices