Added the reference point for any document to the corresponding session.
Added the cycle breaker in the dependency graph
Refactored ORM code
Merged all SQLAlchemy wrappers.
Removed the obsolete repository.
Renamed Collection to Repository
Renamed tori.db.document to tori.db.entity
Updated the documentation to reflect refactoring.