Add the backend bits for userlists and activating users

Needed for user stories #4, #5 and #6.