Abstracted out socket factory
Abstracted login and user and message lists