Changed format of generated string for statistics in gateway to standard json.
Updated html and javascript for handling statistics from gateway. The statistics is now returned as json and bound accordingly in the html.
Merge branch 'issue/1647' into develop