(PDB-1038) Include a new namespace for ezbake to use for service startup

This provides a new namespace: puppetlabs.puppetdb.main that will be used to
startup the PuppetDB service. This avoids the need to include the sub-command
'services' in the ezbake configuration templates, avoiding the need for
a new parameter to be added to ezbake to support this 1 edge case.

The new namespace contains a single function -main, that effectively wraps
the sub-command 'services'.

We also noticed that the core.clj file had a gen-class declaration, since
we don't use AOT this is not needed and is being removed.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #1167 from kbarber/pdb-1038-ezbake-entrypoint

(PDB-1038) Include a new namespace for ezbake to use for service startup
Ensure we use our own vendored directory for gems

We were using the global gemset which is a bad thing, this patch fixes that.

This was causing issues when a fog-core gem that was bad had been permanently
'cached' due to the use of a global gemset. This will slow the build down
and create another potential place of failure, but it is more correct.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #1168 from kbarber/maint/master/tests-use-vendor-path-for-gems

Ensure we use our own vendored directory for gems
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-1043) Added placeholder for required validation