We're still sending everything through WmfFramework calls, and have fairly convoluted logic to determine when to delete stuff.
Core classes say we should be keeping a reference to the session object for performance, so let's do that right in the adapter class.
Examine all the session_ methods in gatewayAdapter and make sure they're doing the right thing, especially the reset logic.