Adds resource to hypermedia. fixes bugs with permissions and incorrect URLs