Handle prefix hack for old versions and new
Make sure that the code is mounted at the correct prefix

We need trailing slashes in the URLs, but not when mounting the views.