Massive round of cleanup
Test failure
Restore stream_open() params to match streamWrapper
Merge pull request #288 from mbabker/cleanupV1

Massive round of cleanup