Add docs for catalog and version endpoints
Add `/v3` prefix to version and server-time docs
Merge pull request #723 from cprice404/maint/1.5.x/docs-for-catalog-and-version-endpoints

Add docs for catalog and version endpoints
Remove references to required 'Accept: application/json' header
Merge pull request #724 from cprice404/maint/1.5.x/fix-json-accepts-in-docs

Remove references to required 'Accept: application/json' header
Extend travis testing to test against postgres

This expands the test.sh script to accept a third element in T_TEST that
represents the database to test against.

We now launch a database (from travis services) and create a postgres db
when required.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #730 from kbarber/maint/1.5.x/travis-postgres

Extend travis testing to test against postgres
(Docs) Note in installation pages that PuppetDB is installed as part of PE 3.0+
Merge pull request #732 from nfagerlund/puppetdb_is_in_pe

(Docs) Note in installation pages that PuppetDB is installed as part of ...
We neglected to update a few of our dashboard links for v3
Update remaining v2 links to v3
Merge pull request #734 from grimradical/1.5-fix-dashboard-links

Update dashboard links to v3
Adapt to the PuppetDB 3.0.0 module changes

This patch fixes helper.rb so that our acceptance tests are compatible with
the new changes in the PuppetDB 3.0.0 module.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #736 from kbarber/maint/1.5.x/adapt_to_puppetdb_300_mod_changes

Adapt to the PuppetDB 3.0.0 module changes
Remove extraenous setup file

Through some merging mistake 15_setup_repos and 15_install_repositories became
duplicated. Deleted 15_install_repositories because the name is longer and it
has slightly older code in it I believe.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #737 from kbarber/maint/1.5.x/remove_duplicate_setup_file

Remove extraenous setup file
(PDB-9) Improve report query syntax error handling

Return better error messages when the user queries with bad operators
or attributes
Merge pull request #735 from senior/ticket/master/pdb9-better-report-query-error-messages

(PDB-9) Improve report query syntax error handling
Clojure code cleanups

* Simplify nil equality check
* Use positive checks for (when ...) cases
* `repeatedly` can take a length 'n'
* Use `dec` to make this simple operation easier to skim read
* Replace a loop with internal conditional with `while`
* Use (when-not ...) for conditionals where positive-case is nil
* Use Clojure's own readable fn for equality checks with zero
* Use positive conditional checks (nil punning)
* nil equality checks can use the (nil? ...) fn
* Equality checks with zero can use the readable form (zero? ...)
* Simplify negative nil return condition by using (when ...)
Merge branch 'clojure-clean-up' into 1.5.x

* clojure-clean-up:
  Clojure code cleanups