Subdomains mode (Closes #72)

Adds a config option (`USE_SUBDOMAINS`) for multiple user mode that will use urls such as `http://username.example.com/profile` instead of `/username/profile`.

There are still some improvements that could be made - the HTTP method is now a little hacky due to having to split the generated url back into a hostname and a path.