Tidy; moved classes into their own files; see full commit msg.

Fixed various inclusions (quite a few unused dependencies).

InputHandler: moved implementation details into anonymous namespace.
PhraseParser, Wordutator: moved into separate files.