Tests: Extract VSHost.TypeText method for editors

Removes all duplicated code from editor typing tests.
Javascript: Dismiss IntelliSense when deleting quote

Includes test case
Merge pull request #597 from SLaks/test-fixes

Further refactor typing tests, fix JS backspace issue