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-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-1034) Ezbake pr testing

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-1034) foo

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-1034) Revert to old PR testing script

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-1034) switch to using ezbake helpers in beaker

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-1034) make test script more consistent with the existing one

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-1034) install our own leiningen

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-1034) fix path

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-1034) Use my own fork of beaker

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-1034) correct version string

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-1034) Remove extra comments

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