First stage of support for opening Z for multiple editing.

References #706.
Improved support for multiple editing.

References #706.