Add the document word completion provider to the core backend script

that is now used by GenericCodeEdit and TextCodeEdit