Context-Based Authoring and Management of Documents