Include measures in Transformation and Refactor code

Include measures functionality in transformation tab. The code has been refactored and internal data format for transfer from API to javascript has been made better and more intuitive.