Using $http Model-as-a-Service in AngularJS