Allow deletion of collections via AbstractRestfulController

- Implemented deleteList() method, and updated switch for DELETE method
  to delegateto this method when no identifier is present.
Added ability to replace a collection

- PUT on a collection (i.e., without an identifier) now invokes
  replaceList()
- Rewrote logic in DELETE case to mirror logic in PUT, GET, and DELETE
  cases.
Removed no longer used method

- Removed processPutData() as it is no longer necessary, nor used. Since
  this was only introduced for 2.1, it's safe to remove at this time.
Use strict check against bool false when determining if ID is present
Remove double negations
Added unit test for patch

- PATCH without an identifier should raise an exception
Return 405 response for PATCH without identifier and unknown HTTP methods
[#2629] Add charset to Content-Type header

- Defaults to UTF-8
- Allows setting via a setter
- charset is always used in generated content-type header
Fully qualify Traversable class in docblocks
Merge pull request #3482 from weierophinney/feature/rest-delete-replace-collection

Feature/rest delete replace collection
Merge branch 'hydrator_closure_strategy' of git://github.com/bondvt04/zf2 into feature/3230
[#3230] CS fixes

- Trailing whitespace
Merge branch 'feature/3230' into develop

Close #3230
[#3055] Remove array to string conversion notice

- Removes an array to string conversion notice when nested arrays are
  provided as values
Incorporate feedbac

- Added getter for charset
- For selected multibyte character sets, an additional
  content-transfer-encoding header is set with the value 'BINARY'
[#3073] Define filter() in Decompress filter

- and have it mimic __invoke()
Added test for #3454.
Fix #3454.

The fix involves forcing a loop through the parent resources when the
current resource is 'TYPE_DENIED'. The loop stops when we are already at
the top-level resource.
Ensure privilege escalation is not possible.

With the previous version, a deny() on a lower-lever resource was not
inherited when on a higher-lever resource an allow() was given.

See the updated test for more an example.
Ensure all children inherit permissions.