New IO: first complete implementation

tests for selector and manager are still missing, connection-level tests still unstable