Fix imports for ParserTest.
Rewrote parser kernel to handle rules.
Merge branch 'newparser-rules-2' into newparser
Fixed:
   - Unit tests now use the new RuleState to add labels to terms. All tests pass
   - cleaned up a bit the constructors - don't require OrderinInfo anymore.
   - TODO: fix generation from KSyntax to grammar states.