Added `EscapeMagic` function to escape magic characters.
Added package GetDocuments and document methods (ref #166).
Updated `SetDocumentModified` to use current tab text.