tree-wide: remove Emacs lines from all files This should be handled fine now by .dir-locals.el, so need to carry that stuff in every file.
tree-wide: sort includes in *.h This is a continuation of the previous include sort patch, which only sorted for .c files.
remove unused includes This patch removes includes that are not used. The removals were found with include-what-you-use which checks if any of the symbols from a header is in use.
journal-remote: fix double typedef and add missing header
journal-remote: rework fd and writer reference handling