API revised
client, CA and server inherites from Entity
client management of connections to CA and server changed