Thywin lib

Added protocol for sending over sockets and added serialization and deserialization
Added Logger class in library
Changed value parameters to reference parameters where possible