Added protobuf support. Added login protocol.