Implement recent changes to the NotebookManager API

 - New method is_hidden
 - New method list_dirs and get_dir_model
 - Correct handling of paths starting or ending with slashes