Move panning functionality to a pan method and add a relative option. Fixes gh-12.

See the docs for the pan method for more info.