Finished testing code for the new Parser.
Included some unit tests.
Parser can now throw errors when JS nesting is wrong.
New Token type for parsing errors.
A few minor fixes.