Feature/api rewrites

Update the vhost template to include the required re-writes for the REST API