fixed issue with middleware() call inside route(), added before()/after()
docs for views, before(), after()