Issue 507 hateoas

Add HATEOAS support to the API