tidying html gen; adds json gen; more config options for build.sh; new scripts to build hive queries