Added Json support for POST and PUT operations in restful controller.

Change-Id: I11963778fa99d1dd1c523203c25d5a9f53958310
Replaced Zend\Json\Decoder::decode with Zend\Json\Json::decode

Change-Id: Iac885dbf1511dfb8087d7f3586ae845e071b26c5
Added protected contentTypes array and requestHasContentType function

Change-Id: I222617c77b3942fdc5b8263b827c1c58dab570b7
Revert "Added protected contentTypes array and requestHasContentType function"

This reverts commit 9dfdefbf4c9d695bc0d2125c30571ae37ff95a89.
Updated requestHasContentType to use the match method of the Accept
header object.

Change-Id: I7e43851c88692b5ea675393719f91d3a4ef379dd
Format source code

Change-Id: I8035798710e17d3e0ec2fdf08fe2d0e1b8086732
Merge branch 'feature/abstract-restful-controller-json-detection' of git://github.com/jvandemo/zf2 into feature/3028
[#3028] Add check for existence of Accept header

- If we don't have an Accept header, we can't test for allowed content type, and
  must return false
Merge branch 'feature/3028' into develop

Close #3028