factor out send command typeId into TcpSender and add some missing javadoc.
refactor to use TcpManager command queue for all connection Ids.
refactor how receive buffer is handled internally for allocation purposes.
added attach completed and detach completed events