Use PSR4 to autoload tests
Relicense to MIT
Improve phpdoc
Clean native stream wrapping