generate a link for each user (bug 1074518)

- [x] add in signing of state code when ready
This format call is oddly aligned. Should the `.` be aligned with the opening `'`?