Improve documentation. Add $resource module
Rewrite REST actions using $resource. Remove $http dependency.