URL prefix

This change adds a `urlPrefix` config option that allows the auth provider's base URL to be set so that, for example, https://example.com/register could be changed to https://example.com/ap/register. Also added are a few helper functions for constructing URLs.