Merge pull request #431 from nicklewis/old-curl

Support old versions of curl in acceptance tests
Acceptance: Remove debugging output from version checking

We were experiencing a weird bug where the acceptance tests were
failing on Debian systems when they were attempting to validate
the version number of the installed package.  We'd added some
debug output to help us narrow down the root cause of the problem.

We've since discovered what the issue was and fixed it, so this
commit simply removes the debugging output.
Merge pull request #432 from cprice-puppet/bug/master/acceptance-failing-because-a-does-not-equal-a

Acceptance: Remove debugging output from version checking
Add a subquery example for the /nodes endpoint

Good to have an example for this as you have to extract the "certname" and
match it to "name" here as opposed to the other endpoints.
Merge pull request #435 from dalen/node_subquery

Add a subquery example for the /nodes endpoint
Add a `puppet storeconfigs export` command to dump the database

This command can be used to export a copy of the ActiveRecord
storeconfigs database (only exported resources, and only nodes with
exported resources) which can be imported into PuppetDB.  This is useful
when migrating from old-school storeconfigs to PuppetDB, as it allows
agents to run without losing any of their exported resources for a time.
Once every agent has run once, the database should be up-to-date in any
case.
Don't export catalog environment

This isn't actually a legal key on the catalog, so exclude it.
Write the storeconfigs database dump as a .tar.gz

Previously this was a single file containing many JSON objects, for the
catalogs. Now it's a .tar.gz (or .tar if gzip can't be found [or
directory if tar can't be found]) containing one file per node. The
tarball also includes a metadata file specifying the nodes which are
present, the timestamp of the export, and the version of the "replace
catalog" command which ought to be used to submit the catalogs to
PuppetDB.