Update to latest protobuf
Move debug option to config file. create server threads in their own classes