Re included the code that would save connections.
Re included the code that would save dictionaries.
Fix bug that the output stream would attach junk data whenever writing data.
Added integration test ( with stripped credentials)