Reworked OpenID redirection to allow for multiple apps.