Pass oldSnapshot for submit middleware

For our application we needed to have a version of the old snapshot around in the submit middleware. This PR adds this.