Binary tree layout

Adds support for spritesmith's new, more efficient binary-tree layout.

This branch is based off the branch PR #3, so it includes the CSS URL case mismatch fix.