Allow serving the web interface under a subpath

These changes fix issue #480. One issue remains: the CSS and JS is not prefixed, see https://github.com/znc/znc/issues/480#issuecomment-34543072.