Fix a caching problem where old hints were getting used.
Update selection tests to search for the index to insert instead of hardcoding the index so the tests are less fragile.
Were creating a new Promise for each request, but only resolving the last one. Now check to see if we already have a promise for a particular request, and return the already existing one if there is one.
EditorManager tightly focused on maintaining the set of Editors and gives
the status bar code room to grow for future UI additions.
This removes EditorManager._init() and the manual calls to it from unit
tests, which seem unnecessary. EditorStatusBar._init() is still called on
htmlReady - just not manually called by any unit tests.
Also, change the status bar code to use active editor more consistently
(used to use focused editor sometimes).