The Contact class stores all the information known about a user. However, since this is a large amount of information, rather than having a single field for each piece of information, it is stored as a set of properties, i.e. a set of (property name, value) tuples. The property names are the same as the XML tags used in a <UserInfo> message which makes it very easy to convert the data to an XML string. The other main advantage of using this system is that changing the contents of the <UserInfo> message requires no changes to be made to Contact.
Originally the Contact class was to encapsulate the functions to send a message to a contact, thereby making extending the protocol to other types of message as simple as adding a new method to Contact. However, the problem with this structure is that a message must also contain the sender's UserID and be signed under the user's private key. Since the UserID and private key is stored in the ContactsDB object, it seemed logical to put the sendMsg() method in the ContactsDB class instead.
Although a signMessage() method exists in ContactsDB it is only a stub and returns the message unchanged as there was not enough time to implement this feature. Since the client cannot generate signed messages, the server also does not check the signature before updating its database and forwarding the message.