Refactor the bindings for scrolling.

  This is the initial part of #175, which will involve adding
 a new mode, and which behooves me to remove duplication.