Support for Prefixing URLs

We're using this improvement from @magnusvk in our app, and think that it should be merged into master so we don't need to maintain a fork.

I added some documentation to the readme to explain usage.