Extension to specify per-request resource types

This is useful when you have a view to a Document that allows
inheritance because it can use request information to determine
exactly what type of resource is being POSTed or PUT.
Merge pull request #25 from xogeny/requested_resource

Extension to specify per-request resource types