WIP: Self url should point to the RESTful URL.

@mirzu pointed out that currently self isn't correct.

The only problem remaining is that the minor version (passed via headers) isn't taken into account, so the URL only represents the major version.