Refactored DU based approach

Extracted JSON utility, modified some of the DU based code.
Refactored Scale vs. ScaleType
Working barplot
Fixed small issue of hardcoded scale name
Tiny fix in example