Refactored spellcheck to listener.

Resolves VUFIND-840.