Moved fs::publish_versioned_object_to_file_system.select_file_name out to database specific files, to fix a bug downloading archives in Oracle installations. The bug caused the entire contents of content-repository-content-files to get copied into the temp directory, once for each file in the archive. Great for filling up disk drives.
Fix add_version to always use storage type of item. Fix add_file to pass storage type to add_version to save an unnecessary query when adding a file and version at the same time.