Updated networking to use NIO

Creates a new keep alive server socket.