ZF-11528: authenticate if credentials are provided and auth adapter present
ZF-11528: authenticate if credentials are provided and auth adapter present

- Moved authentication out of the request bodies loop in _handle()
  - Test for credentials header, and userid/password keys in it
    - when present, call _handleAuth() with the values
      - if passes, add the authentication header to the response
      - if fails, create an error body
  - In loop, test for an error body
    - if present, add it to the current response body, and loop to the
      next
- Use a switch statement in the request bodies loop to test for encoding
  type

EvanDotPro/zf1-mirror,EvanDotPro/zf1-mirror,EvanDotPro/zf1-mirror