Completely refactored the treemap and treemap-tile code, ready for arbitrary layout algorithms.