Added a check to see if session is started so it doesn't throw a warning about the session being started already.
moved turning off 'html_errors' into error/exception handlers, to preserve xDebug's prettyfied var_dump()
Merge commit '38511a2727d92bca3455dc5c511f9297612a872f'

Conflicts:
	src/php_error.php
Merge commit '19cf0fc14c00c9bc8ca8ac8f9d4699c5ded19714'
Check transfer encoding to prevent JS injection in binary

Conflicts:
	src/php_error.php