Base Lexicon functionality.
Still missing:
* Keyword matching
* Some bugs and enhancements to be fixed
Fixes #2.