Fixed raw metadata form, breaks select elements, also cannot remove metadata.
Fixing metadata.getValue so that deletions are also included.
Separating newly added metadata from the existing metadata.
Added change event to metadata raw editor.
Revert "Added change event to metadata raw editor."

This reverts commit 8a7c6046adfeffddbd40f78b1cea0fca604ca349.
Removed unnecessary setting of metadata model and some whitespace.
Fixed check if metadata is changed.
Added check for undefined name and value in updateModel.
Cleaning up getValue method.
Removed unused code and added some more detail to comments.
Added check for metadata.title being undefined.