added User model
fleshed out user model, updated socket event handler logic