Updated networking to use NIO

Now we don't have to read in the InputMessage since all the data will already be read out.