destroy Context before VisualEditor.  Fixes #3801.  Also remove unused
dependencies and code.  @jhpedemonte @billreed63