Fix a few minor issues in sandbox

Like transaction middleware and debug toolbar deprecations.