Fixes needed for running tests against puppet's master branch

Specifically this commit

 - Adds specific checks for puppet 3 when loading storeconfig code
   storeconfig does not work against current master and will be removed
   as part of Puppet 4.0.0. We want to maintain backward compatibility,
   so the code supports both

 - Removes references to Puppet[:trusted_node_data] when on Puppet
   4 (essentially assuming it is always true on 4). Like above we will
   look for it when on Puppet 3.y.z and ignore it (assuming true) when
   on Puppet 4.y.z
Merge pull request #1163 from senior/maint/stable/puppet-4-compiler-change

Fixes needed for running tests against puppet's master branch
(PDB-722) Added validation for in/extract fields in that are passed in vector form. Covered with tests.
Merge pull request #1165 from DemonShi/pdb-722

(PDB-722) Added missing validation for fields in vector forms for 'in' and 'extract' operators in API v4
(PDB-863) Remove com. from jmx and mq endpoints

This commit removes the com. from the jmx and mq endpoints so that these
endpoints use the new puppetlabs.puppetdb namespace. In order to change
all the outstanding references to the old namespace, this commit also
updates the dashboard index.html to reference the v4 metrics api.
(PDB-1028) Make /v4/catalogs queryable

This expands the /v4/catalogs endpoint to have full query and paging capacity,
and brings the catalogs endpoint into the query engine like the others, which
will be useful for syncing and future consistency.
(maint) Switch to new el5 image for acceptance tests

The old image had CentosPlus enabled, which pulled in an odd postfix version
that pulled in a conflicting 'postgresql' package. This new image no longer
uses the CentosPlus repository, since we weren't using it before this anyway
it probably won't matter.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #1171 from kbarber/maint/stable/fix-postfix-postgresql-dep-acceptance-failures

(maint) Switch to new el5 image for acceptance tests
Merge branch 'stable'

* stable:
  (maint) Switch to new el5 image for acceptance tests
  Fixes needed for running tests against puppet's master branch

Conflicts:
	config/image_templates/ec2.yaml
	puppet/lib/puppet/indirector/facts/puppetdb.rb
	puppet/lib/puppet/util/puppetdb.rb
Merge pull request #1162 from wkalt/ticket/master/pdb-1028-queryable-catalogs

(PDB-1028) Make /v4/catalogs queryable
Merge pull request #1169 from ajroetker/pdb-863_remove_com_from_jmx_mq_endpoints

(PDB-863) Remove com. from jmx and mq endpoints
(PDB-158) Added option to disable update checking.

- Updated documentation and sample config file.
- Added `disable-update-checking` configuration parameter with a default
  value of `false`.  If set to `true`, then PuppetDB will not spawn a
  future thread to check whether an updated version is available.
- Removed :updater from post-condition check, in case it's nil.
- Added check to skip adding nil :updater to context.
- Added new parameter to puppetdb-config-in schema, created -out schema, and
  converted input to output configuration.
- Added test code to check for proper config conversion, expected exceptions,
  and correct default value.
Merge pull request #1170 from LaMetterey/ticket/master/pdb-158-disable-updater

(PDB-158) Added option to disable update checking.
(PDB-1034) Switch to using a script in the repo for PR testing

This switches us to using a script sources from the PuppetDB repo for PR
testing instead of storing the script in the jenkins job. This allows us
to easily do very different things if the branch is different, and will
prepare us for the PDB-1034 work where the actions required to bootstrap
testing for stable/master will be slightly different.

Signed-off-by: Ken Barber <ken@bob.sh>
Set gem.{summary,description,license} with appropriate values
Package only puppetdb-terminus files with gem.files and to not require
git to do so.
Merge pull request #1177 from deadpoint/master

Update puppetdb-terminus.gemspec to only package terminus files
Merge pull request #1176 from kbarber/ticket/stable/pdb-1034-prepare-pr-job-for-ezbake-migration

(PDB-1034) Switch to using a script in the repo for PR testing
Merge branch 'stable'

* stable:
  (PDB-1034) Switch to using a script in the repo for PR testing
(PDB-1064) Fixed a bug in extract with 2 element expressions

Previously the query engine would fail if a top-level extract's
expression had only two elements (i.e. ["not" ["=" "certname"
"foo.com]]). This commit adds a guard to the extracts used for nested
queries to ensure it doesn't catch the two clause version of top-level
extract.
Merge pull request #1178 from senior/maint/master/extract-fails-with-to-item-expr

(PDB-1064) Fixed a bug in extract with 2 element expressions