front end visual formatting
added preliminary websocket (socket.io) support.