3.0 middleware events with route

It adds support to use routes on middleware conditions. It means you can use "regex" on the `for` condition.