Remove the get_filename_from_uuid helper function
Raise metadata editing errors while on debug mode
Update references from document.filename to document.label