Cleanup.
Groundwork for improved viewport controls in the scene editor.
Improve playback controls.

Fixes issue #39.