Verbose JSON exceptions

- JSON exceptions now include human-readable messages
- PHP_VERSION_ID is now defined in the preprocessor options
Verbose PCRE exceptions
Added stream_close method