Data Warehouse improvements
1. Allow more than 5 columns in "flattened mode" (new option added in DW config screen)
2. Consolidated some SQL/code used by both DW modes
Unrelated fix also added:
Fixed JS issue with Single Job Status component, which could prevent the output from displaying when some jobs run.