Add function to find an unused name in a directory to lib/file_ops and use it for finding an unused instance directory.
Use lib* prefix for the modules impored from the lib package to help distinguish them more from ordinary variables. Fix up the naming convention for files to be consistently lowercase_underscore for JavaScript files.