[#39241571] Prevent deleting Galaxy library, workflow and history in case of RuntimeError after analysis was launched and in case of ConnectionError, TimeoutError or AuthError at any stage.  In class Connection: additional error handling for post(), remove put(), refactor delete() to use requests library, refactor delete_history(), create_library(), get_library_content(), delete_library() and delete_workflow() to add error checking for invalid resource IDs.  Code cleanup.