Sweeping changes from a lazy developer

Added a bin packing solution to the sprite sheet problem. Started work
on the map loader and animations. Trying to standardize and document
things as well.