WIP, part of Bug 1025805 - multiple referrers over time

Passing through the referrer ID on login, in the same way as this is currently done on `createUser`