Allowing for dual output formats within one run

so that a single run during provision can write both the
human-readable and json output formats.  Also added some minimal
help text.
Swapping precedence of env var and command line arg

so that command line wins.
Adding test to ensure 'Cookbooks Version' is written to human-readable format
Passing the cookbooks version as command line arg

instead of env var, as the latter packs a lot of shell goop into an
env var definition, which is kinda mean.
Passing correct mode arg to File.open

so that writing is possible.  Egad.
Showing line after cookbooks version header as well

mostly for warm fuzzies
Adding a json test and cat'ing everything at the end

for purposes of better reviewing the full terminal output.
Installing jq if missing

as it hasn't landed yet as a base image tool.  yet.
Merge pull request #2 from travis-ci/db-dual-output

Allowing for dual output formats within one run