Add interface for external extension packages

Add mainModule::getStateForEditor. It returns VimState for specified
TextEditor.
Export motions, operators and view-models for extensions