Restructure API paths

This commit REST:ifies the paths of the API a bit.
It also adds a version prefix.