Moved Google login SID cookie creation code.