Add base_url functionality to the web gateway.

This is in order to support putting flapjack behind a reverse proxy under another path. It all seems to work fine for me. The default (no config) is still '/'.

Review thoroughly. I might've done something stupid?