Add bit logger

Takes a single GPIO pin and measures how long it is in a given state and
prints to stdout value, seconds, nanoseconds. Used to record output from
an IR sensor.