Chat server/client using Java RMI and support peer to peer principle