Added "all" method to hook "before" routes.
closes #2094