Bug 852541 - fixed reference-workload dialer history to determine appID correctly

Fixed reference-workload dialer history to determine the communications app ID correctly by reading and parsing the webapps.json file from the phone. Also fixed a minor omission in the image/music/video generate scripts, and moved most processing out of the makefile and into a central script.