fixed a problem where I was sending party_from as creation_user. But some packages use party_from as addresses which are not 'users' and putting those parties in as creation_user then violates the FK requirement in acs_objects->users. So, I've made the creation_user 'null' for now
Commented out the elaborate error reporting when moving a file to a folder with the same name. Postgres seems to have problems querying a table that has just had an aborted transaction. Copied simpler error reporting of file copy instead.