Fixed a few bugs that Tim and I found. For #37
Implemented mapping caching. For #37
Made parse cache scoped to parameterization setting. For #37
Rewrote parsing/grammar to use minimal regular expressions. For #37