use contents manager to handle redirect of /notebooks -> /files

avoids 404 on /files for visiting a nonexistent notebook
updates per review

a few more notebook mentions in docstrings,
and inappropriate use of setdefault.