add command to reorder elements by their class
specify geometry as polygon instead of envelope
correctly clip features when map is rotated
remove unused Hash helpers
trip unneeded data before storing as JSON
remove old layer defs when updating a map layer