Revised/fixed `links` in JSON+API response in all routes:

* Removed in leaf resources.
* Changed to have only one dynamic path, the last one.
Fixed tests for latest changes.
URIComponent-encoded every href parameter returned in a `create` operation.