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.
Add optional package_id parameter to fs::do_notifications to support attachments package which will not return the correct result from ad_conn package_id.