whitespace+formatting fixes, remove dump_scratchpad_to_file_debug
add printf format function attribute to applog and fix found errors
save scratchpad if we received over 720 addendums, use size_t params with json_array_size