When the editor view closes, destroy the editor.

Otherwise Aloha.editables grows with stale editors.
When editor is loaded, place cursor at top so things work immediately.
Update aloha's selection object after cursor placement.
Merge branch 'master' into cursor-at-top-P61220688
Fix spelling mistake

Doesn't matter when executing the code, but it hurts to mispell it when you
search for it.
Move aloha cleanup code to onClose method.
Move focus function to higher level.

The focusing has do be done after the template is attached to the DOM,
otherwise it fails to activate correctly. It also has to be done after
the content is loaded and after the editor is created. To that end,
we also implement a simple handler that resolves a promise once the
editor is created.
Merge remote-tracking branch 'origin/master' into cursor-at-top-P61220688

Conflicts:
	scripts/views/workspace/content/layouts/editor.coffee
Merge pull request #123 from oerpub/cursor-at-top-P61220688

When opening a module, put the cursor at the top of the file so things work immediately