(#14) - adds rewrites support

Requires https://github.com/pouchdb/pouchdb/pull/2360 to be merged first. I'm new to Express (& pretty much node.js in general), so I hope this is done 'the right way'. Anyway, feedback welcome.