Require a document ID parameter for getLayerSettingsForPlugin for consistency with getDocumentSettingsForPlugin; promise cleanup