Added MeasureManager to handler measures.

Moved measure managing codes from parser to MeasureManager.