Added middleware support to routes.
Query parser now handles arrays.