A few Fixes and improvements. (Temp file, Header setting/output, JSON encodeing)

This pull contains a number of improvements:
* A flag allowing using `php://memory` OR a File in the PHP Temp directory for the Handle used when capturing Headers.
* Support for PECL-style Header output (multi-dimensional associative arrays).
* Support for setting a group of headers.
* Support for setting Headers in the PECL-style (multi-dimensional associative arrays).
* Support for automatic JSON encoding of the POST contents is the 'Content-Type' is application/json.