Refactor Hateoas link creation and handling
Created by: tsodring
The Hateoas link handling is a bit of a nightmare. There is a mismatch between the Collection types being returned from the database and nikitas types I think the casting is resulting in the (re)creation of collection objects. But I haven't had time to explore the issue.
The whole Hateoas handling should be revisited to make sure the code is optimal. This work starts with nikita.model.noark5.v4.hateoas.HateoasNoarkObject.