Refactoring server code

move methods from SessionServer into WriterServer
move methods from Process into SessionServer
Merge remote-tracking branch 'origin/refactoring' into client