Allow generating REST resources fixating the extension.

This permits writing routes without the need to specify the extension.
It is useful when you always want those resources to be identified as a
specific type, so the following two can be the same:

http://example.com/categories/1.json
http://example.com/categories/1