deprecate redirect to use beforeModel and afterModel. Fixes #161