Fix auto-conversion regression

Fix regression in last release that broke auto-conversion of ebooks when
sending to device/sending by email. Fixes #1200864 [False conversion from mobi to epub by using Tolino](https://bugs.launchpad.net/calibre/+bug/1200864)
tags manipulation API
...
Miscellaneous API
Fix img flip regression in PDF

PDF Input: Fix a regression that caused some images to be flipped when
converting PDF files that use image rotation operators. See #1201083
formats API
Implement refresh/reload semantics
update_last_modified() and set_marked_ids()
tags_older_than()
More API
...
EPUB Output: Generate inline ToC

EPUB Output: Add an option to insert an inline Table of COntents into
the main text. Fixes #1201006 [Epub output: not possible to insert inline toc](https://bugs.launchpad.net/calibre/+bug/1201006)
Implement refreshdb:
More API
...
get_id_from_uuid()
Dont chdir() when doing bulk metadata

Works around broken windows systems with temp folder permission issues.
Renaming of many-(one,many) items
When renaming return id map as well
Ensure tweaks are set to default when running tests