convert all http calls to use angular's $http