Improve build system and add socket.io/jquery.