Merge safe_redirect and redirect

redirect now issues a deprecation warning to remain backwards
compatible.
Add redirect(safe_hosts=) parameter