This patch represents the contents of 'kazakov/multithreaded-brushes' branch.
Now Pixel Brush engine is fully multithreaded. The number of used threads
is controlled by the Threads Limit option in "Performance" tab of the
preferences. All the features of Pixel Brush should work as usual, but
several times faster :)