Move async stuff from conn.cpp into new files