Added support for '?next=' like redirects after successful 'login as'.