Add a layer of indirection to the session internals
Parameterize tests on standalone vs session-based
Add a repro for snap-core issue 192