Merge prevent-leftovers: Prevent mergely from leaving things behind after destruction. This allows for tests to run without affecting each other.

Removed some unecessary global variables

Removing codemirror override style element from head once it's no longer needed

Remove window resize handler on destruction

Add tests for prevent-leftovers fixes