move TcpConnection callbacks into class namespace scope
add Context for TcpConnection
add Quit for EventLoop
only wakeup when necessary