(PDB-697) Document and test new events and resources features

This change adds tests and docs for events/resources features inherited
by the switch over to the query engine.

This change also documents and tests an explicit "null?" operator. Some
endpoints for v2/v3, when using not, such as ["not" ["=" "line" 10]]
would return line values that were NULL in addition to other line
numbers. In v4, this is no longer the behavior. Users wanting null
values in addition to lines != 10, can use "null?" with an "or"
statement.
Merge pull request #992 from senior/ticket/master/pdb-697-doc-test-changes-for-qe

(PDB-697) Document and test new events and resources features
(PDB-337) Remove extraneous _timestamp fact

Previously a _timestamp fact was submitted to puppetDB even though _timestamp
was originally intended for internal use.  This commit strips internal data
(all preceded by "_") from the factset before submission to PuppetDB.
Merge pull request #993 from wkalt/ticket/master/pdb-337-fix-_timestamp-fact

(PDB-337) Remove extraneous _timestamp fact
(PDB-220) Coerce numerical function output in manifests to string

Previously, when a user defined a numeric-valued function in a puppet manifest
and submitted it to notify, the resource-title would remain numeric and
PuppetDB would throw exceptions while storing reports. Per the docs,
resource-title must be a string. This pull request avoids the problem by
coercing resource-title to string.
Merge pull request #994 from wkalt/ticket/master/pdb-220-report-storage-numeric-functions

(PDB-220) Coerce resource-title to string
(PDB-240) Replace anonymize.clj read-string with clojure.edn/read-string

This patch replaces a call to read-string in anonymize.clj with a call to
clojure.edn/read-string. Unlike clojure.core/read-string,
clojure.edn/read-string is safe to use with untrusted data and guaranteed to
be free of side-effects.
(RE-1497) Remove quantal from build_defaults

This commit removes quantal from all build defaults because it is end of
life. It removes the defaults from the build_defaults yaml.
Merge pull request #995 from clantant/RE-1497/master/srcs

(RE-1497) Remove quantal from build_defaults
Merge pull request #996 from wkalt/ticket/master/pdb-240-swap-anonymize-read-string

(PDB-240) Replace anonymize.clj read-string with clojure.edn/read-string
(RE-1497) Remove quantal from build_defaults

This commit removes quantal from all build defaults because it is end of
life. It removes the defaults from the build_defaults yaml.
Merge pull request #997 from clantant/RE-1497/stable/srcs

(RE-1497) Remove quantal from build_defaults
(PDB-164) Add documentation for select-nodes subquery operator

This pull request supplies V4 API documentation for the select-nodes subquery
operator, which was previously supported but undocumented.
Merge pull request #998 from wkalt/ticket/master/pdb-164-select-nodes-documentation

(PDB-164) Add documentation for select-nodes subquery operator
(PDB-601) Do not require query operator on reports endpoint

With this pull request, hitting the reports endpoint without a query argument
will return the full reports collection.  This behavior is consistent with
that of the nodes, facts, and resources endpoints.
Merge pull request #999 from wkalt/tickets/master/pdb-601-optional-query-reports

(PDB-601) Do not require query operator on reports endpoint
(PDB-162) Add regexp support to resource parameter queries

The query engine supported this, but the existing "rewrite" rule, to go
from the shorthand parameter syntax to the nested resource query didn't
recognize ~. That is fixed with this commit, so regexps will now work on parameters.
(PDB-675) Stop pdb process even if pidfile missing

Prior to this commit, there were issues about the init.d script failling
silently if the PIDfile was missing. Although the fact that the PIDfile
was missing is a greater issue, this at least provides a workaround for
that. When trying to stop the puppetdb service with a missing PIDfile,
the stop would fail silently, assuming the process had already been
stopped because of the missing PIDfile. However, running `ps auwx | grep
puppetdb` would show that the process has in fact, not been stopped.
This change updated the init.d script to check if the PIDfile is
present before atttempting a stop. If it is, it uses that information to
stop the process as it always has. If it isn't, then it uses the
puppetdb user to stop the process. It is likely that this is too heavy a
hammer to user for this particular problem, but I think it should do
just what we need it do. We still specify --exec when searching for the
process that needs to be stopped, which should limit the possibility of
stopping a process we actually don't want to stop.
Merge pull request #1000 from senior/ticket/master/pdb-162-regexp-on-resource-params

(PDB-162) Add regexp support to resource parameter queries
(PDB-720) Fix services test with hard coded Jetty port

Fixed this issue by moving code that dynamically picks a free port out
of import-export-roundtrip and into a separate ns. I just switched the
services test to use that code and there should no longer be conflicts.