User attribution after sign in added

If a user is not signed in when they submit a link but then, when
prompted, opts to sign in, their user ID is retroactively associated
with the link they submitted using a session variable.