(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
(PDB-826) Fix pathing for puppetdb-legacy

For PE the puppetdb-legacy scripts (such as puppetdb-ssl-setup) expect the
puppetdb script to be in the path. This assumption isn't always true, as we
install PE in a weird place.

This patch adjusts the PATH for this single exec so that it also includes
the path of the directory where the original script is found, which is usually
/opt/puppet/sbin.(PDB-826) Fix pathing for puppetdb-legacy

Signed-off-by: Ken Barber <ken@bob.sh>
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
Merge pull request #1045 from kbarber/ticket/master/pdb-826-pe-paths-for-puppetdb-legacy

(PDB-826) Fix pathing for puppetdb-legacy
(PDB-822) Change acceptance tests to incorporate structured facts.

This patch augments our basic_fact_retrieval and import_export acceptance tests
to include structured facts, and also bumps the version of the nodes query in
the facts/find indirector so structured facts are returned when puppet facts
find is issued to the PDB terminus.
Merge pull request #1050 from wkalt/ticket/master/pdb-822-structured-acceptance

(PDB-822) Change acceptance tests to incorporate structured facts.
(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>
(PDB-809) Use json stored branch for factsets also

This patch fixes it so factsets can also benefit from the depth 0 json storage.

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-820) Remove glob operator

This removes the glob operator, leaving the regexp operator as the main way of
matching paths in a complex way.

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