Add -j option to output in JSON format (not actually implemented yet).
Minor fixes to verbosity levels.
Error messages now print in json when requested.
Only print temperatures when they could actually be retrieved.
Jsonify 'easy' output cases.
Fix reporting errors and returning in chained socket commands (e.g. getTemperatures) except in act_sendGcodeFromStdin.
Print ok message in json mode after reading gcode from stdin.
Some more jsonification.
Suppress getopt errors and print proper message instead.
Fix closing socket on error in act_sendGcodeFromStdin.
Move socket open calls to handleAction().