Janrain auth handling fixes

Change how Janrain URL is generated so that post-login redirects are correct.