Add "show-open-files" demo script and associated lib changes