Add An Abstract StreamWriter

For one of my projects, I already created a Class handling streams instead of SplObjectInfo

refs #86

Also add A utility test class StreamWriterTest for easier test stream
creation.

Signed-off-by: Benoît Burnichon <bburnichon@gmail.com>