Long press latch

Add a long-press mode to pushbuttons.  I will add a small unit test to prove that it works before I merge.