Split out gesture handling logic
Split out gesture handling logic

The gesture handling in the layout manager does a few things too many,
so I split the pieces into different functions.

PsychoLlama/luminary,PsychoLlama/luminary