Refactor to eliminate accounting package dependency on appengine.datastore
Refactor to isolate appengine dependency