Output JSON diff to file if -o option is used

and also output regular reports for other -o options
Merge pull request #363 from presidentbeef/json_diff_output

Output JSON diff to file if -o option is used