Add user id to server side segment io events

Server side segment io events now include the current users id if a user
is currently logged in otherwise it is tracked as anonymous.