boost: split stream classes out of serialization.h

serialization now has no dependencies.