Add support for customizing the name of the resource id parameter

* Add IdParameter method for mapping resources
* Update docs
* Add some helper methods for tests