generate a link for each user (bug 1074518)

- [x] add in signing of state code when ready
Although I guess it's 4 spaces in from the `'`. I'm not sure what's right. Maybe break before the `{0}` but that's weird too.