first attempt at GPIO read support

I don't think we need wiringPi: the basic user-mode
GPIO access provided by Linux should be sufficient.
It allows blocking select/poll if the underlying GPIO
hardware supports interrupts.