(#22785) Add map function (copy of collect)
(#22785) Rename and update collect_spec to map_spec and use map

This updates the test to use map instead of collect.
(#22785) Deprecate the collect function (by making it raise an error)

The collect function is changed to raise an error that tells people
to update their manifests to use 'map'.

The documentation in the function also indicates the change, and
contains a note that it is reserved for future use.
(#22729) Remove the reject function.

The iterative 'reject' function shadowed the stdlib function with the
same name. At the same time there was a decision to rename the 'select'
function to 'filter' (to use a name in the functional programming
languages family map/reduce/filter). The reject function was then
rejected [sic].

This commit removes the reject function and the corresponding tests. The
function was not used anywhere else in puppet logic or testing.

User documentation needs to be updated.
(#22792) Rename the 'select' function to 'filter'
(#22792) Add select function that raises error

This adds a select function that tells user to update their manifests
to use the filter function. The function is reserved for future use.
(#22792) Rename 'select' to 'filter' in spec tests
(#21258) Update link to LSB exit code documentation

Link to linuxfoundation.org, as the content had moved and the
refspecs.freestandards.org domain can no longer be resolved by DNS.

Also updated to link to latest LSB release (4.1.0).
(#22792) Fix typo in filter functions documentation.
(#22792) Rename select_spec.rb to filter_spec.rb
(#22846) Add json schema for node
(#22846) Document node endpoint
Merge pull request #1993 from pcarlisle/ticket/22846-document-node

document /env/node
Merge branch 'issues/issue-22792-rename-select' of git://github.com/hlindberg/puppet

* 'issues/issue-22792-rename-select' of git://github.com/hlindberg/puppet:
  (#22792) Rename select_spec.rb to filter_spec.rb
  (#22792) Fix typo in filter functions documentation.
  (#22792) Rename 'select' to 'filter' in spec tests
  (#22792) Add select function that raises error
  (#22792) Rename the 'select' function to 'filter'
Merge remote-tracking branch 'henrik/issues/issue-22729-remove-reject'

* henrik/issues/issue-22729-remove-reject:
  (#22729) Remove the reject function.
(Maint) Whitespace fixup

Remove trailing whitespace.
Merge branch 'issues/issue-22785-rename-collect'

* issues/issue-22785-rename-collect:
  (Maint) Whitespace fixup
  (#22785) Deprecate the collect function (by making it raise an error)
  (#22785) Rename and update collect_spec to map_spec and use map
  (#22785) Add map function (copy of collect)
(#22891) Use the most preferred supported format

Previously the code had assumed that the order of the supported formats
didn't mean anything. However, the preferred_serialization_format, and
other factors, meant that the order really does matter. This makes the
selected format, when the Accept header is */* be the most preferred,
supported format.
(Maint) Refactor retrieving the indirection in http handler

Pass the full indirection object into do_* methods instead of just the name.
This is a better access point for getting what these methods need and reduces
duplication.
(#22893) Make handler check whether remote requests are allowed

The http handler will check whether an indirection allows remote requests
before performing any operations.