Added some util methods for post, put and patch to send the object own attributes as parameters.
This allows the HAL objects to be edited directly then posted back to the server.