Added a lot of new networking stuff and a few gui improvements.