Several toolchain methods added.
Improvements of regular expressions inside lexer.
JavaScript unit tests added. Toolchain roughly tested at C# side.