Reduce size of the changelog if it goes over the some limit
Right now we only append to the changelog file. We should also in some cases reduce its size. The reduction should be always done by whole transactions and should not interfere with any running updater or supervisor process.
The interference is in general an issue as we have to shift the content of the file down to truncate it. We should just introduce file lock to all parties and use that instead.