The Tool framework is slowly emerging

Further work on #20. The basic flow of AnimationFrameView and Tool
interaction is basically there but buggy apparently. Also added
drawCanvas to Painter which goes under #7.