FIX: Keep in sync with client during stream switch
Use regex ad sentinels
Put space around headers when printing
A duplexer class for writing multiple files at once