Improve error handling of colormap.
Change meaning of leftbounds in colormap, they are now inclusive.
Make the calculation of opacity faster.
Reorganize tests.
Let the png_generation task use a custom tmp_dir.

Reinstate the "__revision__" bit in png_generation, apparently it's still used.