replay file rotation
Refactor network layer.
Merge branch 'master' of https://github.com/RagingBigFemaleBird/sgs
Fix file rotator.