Fork of zzzeek's pycon demo from https://bitbucket.org/zzzeek/pycon2014_atmcraft, changes include removing globals and adding transaction manager support.