I'm not so sure we should do this. Adding more middleware on demand will cause the actual middleware will not honor the order. Instead, I think we will have to emulate express here, doing our own simple walk on those middleware, and controlling the error and the next. I did that in modown-yui->middleware for the static, please, double check.