Quadtrees

Add a quadtree implementation to allow the compositor to keep track of which tiles have been rendered and which haven't.

r? @pcwalton