Fix context menu triggering on template blocks
Fix dragging within the menu adding to the undo stack even though nothing has actually changed
Fix copy-drag duplicating template blocks in the menu
Fix locals being allowed to escape the scope in which they are defined
Clear localStorage when clicking the New button
Merge pull request #406 from CelticMinstrel/master

Several bugfixes mostly related to dragging