No need to use twophase in sqlalchemy since we only talk to one db
Ensure model instance have an id

* Register a sqlalchemy event listener on all models that are subclasses
  of HasId to make sure id is set on object creation so the id can be
  referenced prior to commit.
* Add TODO entry to think about refactoring out sqlalchemy from the
  plugin