working on event model propagated from BT
unified socket reading on client/server side
introduced Handler and ConnectedThread