Specify tomcat as the user for deposit stuff. Don't take $user as a parameter.
Remove unused $tomcat_user param
Assume that we use the "irods" user for iRODS stuff
Remove the remaining places where we assume we can parameterize usernames