Improve zooming, improve thumbnail, add flood fill tool

Zooming and panning now use multi-touch GestureDetectors.
The thumbnail has been split into its own class and has been improved.
Flood fill has been added and can be accessed from the action overflow.
Additional general code touch ups.