Redirect flow

@seanmonstar - here is the replacement for #3776. This is pushed to redirect-ios.personatest.org.

I'm happy with it if you are happy with it!