Added a catch and retry for a timed out connection to the datbase.
Added socket.io dependency.
Added socket.io stuff.