Add support for swipe gestures from lpm state

In any case this is going to be largish change, I'll file a separate task for it.