Fix flattener bug where older transactions had priority. Remove extra line that was causing files to go into the wrong place in notification receivers. Ensure metadata editor is pushing out json, not strings.