initial event loop structure and abstraction of KhakiSocket introduced