Added middleware function (and middleware-esque function for Backbone ro...

...utes) to add custom handling on a route by route basis.