Change 'before' to onBeforeAction.

See if this will fix issues related to update of iron-router to version 0.7.0.