GIS.lab Web: measure tool refactoring (closes #225)