Added if_folder_exists and get_signed_request.
+ Lifted directly from copy_endpoint.
+ TODO: Merge into common code.