Refactored parser state code out from Parser to ParserStateProperty.
Better way of handling presence of parser state.
Some good refactorings (but uncomplete) around parser state.