Add Selector class, wrapper around `select`.

* Only works with sockets and file descriptors ready for reading.