begin using AngularJS services for REST calls