Various fixes to work with standard RESTful Rails apps.

* Added configurable HTTP methods for RESTful actions
* Fixed save() so it would insert the model's pkField into the URL for updates.
* Fixed URL generation to avoid generating URLs with invalid extensions like http://.../resources/.json