0.9.x Support for non-root apache configuration

This is a modified version of #328 that is rebased for the 0.9.x branch. It also includes some fixes to get the dashboard to work correctly in a non-root configuration.

I've verified that this solves #327 using mod_wsgi running both as a root application and without.