(docs) Fix glitches noticed while backporting recent revisions to 1.6.x

* In 2.1 and up, the events endpoint is unsorted for v3 and v4.
* v3 doesn't support environments, but one line about them snuck in.
* Accidentally let "certname" (a v4-ism) slip into v3/nodes.
* Fix a busted URL and some glitchy header levels.
Merge pull request #1013 from nfagerlund/jul_2014_docs_revisions_for_stable

(docs) Fix glitches noticed while backporting recent revisions to 1.6.x
(PDB-762) Fix broken export

This pull request fixes a malformed post-assertion in the events-for-report-hash
function that caused exports to fail on unchanged reports. Inserting proper
parentheses made it apparent that a seq, rather than a vector, should be the
expected return type.
Merge pull request #1015 from wkalt/ticket/stable/pdb-762-broken-export

(PDB-762) Fix broken export
(maint) Split out acceptance and unit test gems in a better way

We want to avoid installing all of the unit test gems when running acceptance.
This patch moves rake into its own place so we can use --without test properly.

Signed-off-by: Ken Barber <ken@bob.sh>
(maint) Switch confine for basic test during acc dependency installation

The way we were using confine was wrong, and since this is now more strict
in beaker it was throwing errors in the master smoke tests. This patch
just replaces it for a basic include? on the master platform instead.

Signed-off-by: Ken Barber <ken@bob.sh>
(cherry picked from commit 42f6ddfd1934b887984c381fc080fa883e83abc2)
(docs) Change some old URLs, remove mentions of inventory service.

Some of these files have moved, and others should point to the latest version
instead of a specific version.

And the inventory service is not really good news anymore. People should just
use puppetdb's api directly.
(PDB-823) Remove saucy from build defaults

This commit removes saucy from build_defaults. It went EOL on July 17,
2014
Merge pull request #1042 from nfagerlund/docs_old_urls

(docs) Change some old URLs, remove mentions of inventory service.
Merge pull request #1043 from clantant/PDB-823/stable/saucy

(PDB-823) Remove saucy from build defaults
DOCUMENT-97: Mention updating puppetdb module

Upgrading PuppetDB using the module is pretty easy, but we should point
out that the module should be updated *first*.
Merge pull request #1046 from holguinj/DOCUMENT-97-s

DOCUMENT-97: Mention updating puppetdb module
Merge branch 'stable'

* stable:
  DOCUMENT-97: Mention updating puppetdb module
  (PDB-823) Remove saucy from build defaults
  (docs) Change some old URLs, remove mentions of inventory service.
  (maint) Switch confine for basic test during acc dependency installation
  (maint) Split out acceptance and unit test gems in a better way
  (PDB-762) Fix broken export
  (docs) Fix glitches noticed while backporting recent revisions to 1.6.x

Conflicts:
	src/com/puppetlabs/puppetdb/cli/export.clj
(PDB-809) Store top level structured fact data as JSON

This adds the storage of the top level facts that happen to be structured in a
new column of fact_values called `value_json`. This is provided so we can query
top level facts for the /facts endpoint in a performant way, without having
to also reassemble the pieces of values into a JSON object later on.

This patch also removes some dead code from the facts endpoint code, and moves
the generalised reassembly code that was shared between facts and factsets into
a factsets specific area. Since now, this is the only endpoint that needs this
code.

Signed-off-by: Ken Barber <ken@bob.sh>