ISession can now be injected.
Added InMemorySession for testing.