Renamed fileformat.go to stream.go and the related test file accordingly.

Having a file that handles all stream related code and separate the
lower level code provides a better organisation of the code.