Add some initial event handlers for Document and Model.