button input reader thread (untested)

This is enabled only when compiling on the RPi.