added JSON output using the --json option
switch to --format option instead of --json, display helpful error message when unknown format requested
update README to use new format option
Merge pull request #21 from caolan/json-format-option

added JSON output using the --json option