done with connection management, in middle of adding sendfile function to packetstream
Merged changes with update client and server