Make asyncore loop into a class, fix conn set usage