remove obsolete file tree data structure
move sink_stream to a new header
remove unused txt encoding function
move directory_listing and its JSON encoding to a separate header
move more stuff to new headers