Add before/after filters for routes.