Fix compiling for single (unsaved) files
Fmt formats document in-place, autoformat on save

When running Fmt command, the file is not being saved before formatting,
just the window content is being replaced. Added callback to automatically
trigger formatting on file save. Errors pop up in a tooltip.