Refactored streams from C-style to a C++ class hierarchy.
Merge pull request #11 from akumetsuv/classy-streams

Refactored streams from C-style to a C++ class hierarchy.