generate a link for each user (bug 1074518)

[ ] add in signing of state code when ready