Added support for mounting an array of middleware.

Allows middleware to be mounted in a similar fashion to express routes.