Miguel/plugin refactor

It might not be a good idea to blindly write to `cm.__linter`; but I don't know if that instance of CodeMirror could potentially have anything in `__linter`. We did this before, so not a regression.