Switch Upstart template to str.format, for uniformity with production.ini template; also fix some buglets in production.ini file generation and upload.
Switch Upstart template to str.format, for uniformity with production.ini template; also fix some buglets in production.ini file generation and upload.

lisa-lab/pings,lisa-lab/pings,lisa-lab/pings,lisa-lab/pings