Fix Varnish / redirecting

- Only redirect on GET, HEAD and OPTIONS
- Pull out redecting code into a separate subroutine
- Rearrange routing to always check host name first
- Do not redirect slashes on stagecraft