Prevent metadata editing of non-directories.

Added logic to prevent the metadata editing modal from showing if
no entry is selected in the arrange panel or if a file is selected.
Assign SIP UUID to directory levels of desc.

Added logic, during SIP creation from the arrange panel, to assign
the SIP UUID to each DB entry for a directory's level of description.