Make 'completion' hooks completely replace the completion algo

The hook for adding variable completions has been renamed to
variableCompletion.

Issue #412