service template - replacing Opigram's wrapper with $http