Manage events a little better, rescan a lot more.
Separate edit-mode into individual files and fix stuff
Fully support ie9 in editmode! (probably)
remove superfluous var declaration (what was I thinking?)
Ensure layouts are `append`ed rather than `prepend`ed.