Use ngResource instead of $http and update UserService