Change $http into $resource. Clean up build.