Add support for base paths in the graphite url

Before this fix using something like http://tessera.example.com/graphite did not work.