First prototype for cleaning up error handling.
Fixed all memory related bugs. Now only phpts are failing.
Fix tests for new behavior of error code.
Fix missing TSRMLS_CC/DC
Fix TSRMLS bug
Fix travis
Merge pull request #2 from QafooLabs/errors_cleanup

Errors cleanup