Added before and after props for routes

This should make the before and after callables possible in the routes.php. This however only works in php at the moment. If someone finds a yml or xml way possible that would be welcome