Merge pull request #559 from kitskub/client-connection

Large changes
Separate Session and NetworkSynchronizer

Signed-off-by: Jack Huey kitskub@gmail.com