Use $http promise

Use $http promise instead of creating one with $q.