Add option for base path

I needed the ability to have a base path for static files (`website.com/basepath`). Do you see this fitting in to your main repo?