Don't dismiss rename dialog until rename is complete

- draws error message in the same dialog,
rather than triggering a new dialog via events.

- `Notebook.rename` returns the contents Promise, rather than registering its own error handler.
Merge pull request #6975 from minrk/rename-error

Don't dismiss rename dialog until rename is complete