Some support for Apache Passenger

### New features

- If you decide to run this with Passenger there are still a few bugs getting it to work. This PR gathers the request path a bunch of places in order to support that.