DocumentSaver: weaker dependency to Document and GSettings

GSettings is still needed for another thing.
New property DocumentSaver:ensure-trailing-newline

Remove the dependency to GSettings in DocumentSaver.

The DocumentSaver has also the "flags" property. But
GeditDocumentSaveFlags is a public API for gedit plugins. Here the
modification is private.