[models] added the pyramid_tm package

A package which allows Pyramid requests to join the active transaction.
Resolves #18. This was the cause of the weird refresh bug, where every
other request would get stale data.