Added processLevel tests for the parser, and some small refactorings
Merge branch 'lee-dev' of github.com:lnewson/csprocessor into lee-dev