Fixes Issues #132 'before' is deprecated warning

<deprecated> [RouteController] 'before' is deprecated. Please use 'onBeforeAction' instead.

Fixes Issues #132