add select based waiting
(temporarily) rename to wait_select
make select an optional argument to wait.
Merge pull request #30 from ledbettj/select

add select based waiting