Kontalk client common code, shared among Java clients.