Added the Common project. Refactoring the Document model.