Cleanup Kernel.select

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