Include API version in URLs

Addresses https://bugs.launchpad.net/oq-engine/+bug/1201775

https://github.com/gem/oq-engine-server/pull/1 and https://github.com/gem/oq-engine-server/pull/2 need to merge first for a clean diff.