update last_dirty_count in a few forgotten places -- fixes save/load bug
start moving edit code to Lua (except bbox) -- can select, destroy, grab