Refactor to use queueForVim function.
Fix for builtins, hack to show cursor in codemirror, and better handling for js listening for key input.