added persistent storage of chats using psycogreen
merged conflicts in sockets.py. need to discuss!