bugfixes and log optimizations
Rewritten server and client

newserver / oldserver
newclient / oldclient