urls: fix bug by adding trailing slash.
API: remove language and replace id with code in URIs.
tests: fix API factory tests.