Cleanup Kernel.select

Closes #345. This also consolidates the code from `IO#select` into `Kernel.select`.

@MagLev - what do you guys think?