Fix add_version to always use storage type of item. Fix add_file topass storage type to add_version to save an unnecessary query whenadding a file and version at the same time.
Add optional package_id parameter to fs::do_notifications to supportattachments package which will not return the correct result fromad_conn package_id.
Make sure all versions of content_item__new behave in the same way, creatinga new revision if content or title is specified. Patch#580 fromDave Manginelli fixes bug#2040.
bug #1997: fixed DS user-switching (U-S), in ds_permission_p giving fake id for party_id = 0, to avoid infinite loops on ad_conn in any new unknown request