Work in progress connection pool for managing more then one socket connection and events.

Casting now work with xml. Some adjustments in the TCPConnection object to suppor different parsing of xml and keep socket open for multiple connections.
Work on progress