added logging, socket.io, socket handling framework, improved server