Fix txns from pubsub

txns received from pubsub when not inside the txn middleware now work
correctly.

I fixed the code the buffered them, and added serialCleanup() calls to
flush the buffer.

Fixes #110
Make in-memory pubsub async to avoid re-entrancy
Merge branch 'pubsub-fix'