simplified the expect<> code in app.cpp
pre-serialize session initialization message in engine instead of session ctor, makes things a bit faster in some scenarios
beautifulization