Track the last save in history

Covers https://github.com/KSHSK/WAVED/issues/177

I removed the local `_dirty` flag and all references to it. Now, the `dirty` getter returns true when the current history index is different from the index of the last save. Please verify that this still works as expected since now dirty is implicitly set when history is changed.