Add basic structure for handling a RESTful resource with JSON HAL.

Support added for
 - Single resource
 - Embedded resources
 - Pagination (with next and previous linking)
 - Custom (templated) links