Loosen project_id restrictions on Folder API, add folder_id, restore action, and some other tweaks