Further implementation of userlog

also began turning client id gen into require.js module