Code to assist in creating hal+json (http://stateless.co/hal_specification.html) responses.