refactor reactor and acceptor-connector patterns
seperate lib files from test projects
add bin for test