a django middleware to dispatch script prefix portion of a url