Replace middleware in favour of a plugin to remove slashes

There doesn't seem to be an easy way to apply middleware to a wsgi instance