Converted to Maven project.
Merge changes that allow use as lexer.
Updated licenses.