Fixed test suite on Rails 4.0
Give more control over where to redirect

Instead of forcing redirects to `root_url` let the user decide, and
eventually fallback to `root_url`.
Pass resource to email delivery wrappers
Update generators