Add doc::Settings to get the undo limit (or other settings that will be in the logic/doc layer)