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
Merge pull request #267 from alphagov/fix-redirect-slash

Fix Varnish / redirecting