Extend ngResource to support PUT method
Clean up comments