Add basic stream wrapper.
Remove PhpStream.
Add tests.
Inline registerStream.
Infer open mode.
Cleaned up, added stream_stat, and more tests