angularJS service provider for http ops