ttools: refactor Axis pan/zoom code

Add new static utility methods pan and zoom to Axis class so that this
code can be used in absence of an Axis instance.
ttools: add 2d pan to 3d cube view

You can now pan a cube plot in the two dimensions closest to the
plane of the screen.  This is currently done using a middle-button drag.