Angular resource dependency added to module.
Changed $http to $resource.