Further work on scalable multi-threading.

Psychopath now renders in blocks on pixels, with each block being rendered
by a separate thread.

Lots of bugs in the new code, but is more-or-less working.