Edit Book: New tool to specify semantics in EPUB books (semantics are items in the guide such as preface, title-page, dedication, etc.). Fixes #1287025 [[ebook-edit] Implement of defining more reference types of guide section](https://bugs.launchpad.net/calibre/+bug/1287025)
Merge branch 'master' of https://github.com/cbhaley/calibre
applefobia recipe
pep8
...
Applefobia by koliberek

Merge branch 'master' of https://github.com/koliberek/calibre
cleanup applefobia
Fix a regression in the previous release that broke downloading metadata for authors witha  double initial such as R. A. Salvatore. Fixes #1294529 [Metadata download fails on author with 2 intials](https://bugs.launchpad.net/calibre/+bug/1294529)
Get rid of the backwards compat code for people running from source that have not updated their binary calibre builds as 1.28 has been out for a while
Updated diagnostic logging. Optimized logging when debugging disabled. Added 'silent' switch to exists(), _afc_get_file_info(). Changed buffer for device name from fixed size to variable size.
Merge branch 'master' of https://github.com/GRiker/calibre
Start work on saved searches dialog
Ordering, editing, adding, removing for saved searches
Fix for lp:1294983. Added test for bools_are_tristate when processing rules for bool fields.
Fix #1294983 [Tristate Columns not interpreted properly for EPUB Catalog creation](https://bugs.launchpad.net/calibre/+bug/1294983)

Merge branch 'master' of https://github.com/GRiker/calibre
Refactor the search code in preparation for multi-searches
Implement multi-searches
Edit Book: Add support for saved searches. Click Search->Saved searches to bring up a dialog where you can create and manage saved searches

Needs testing
Linux build: Workaround for systems that have broken libc implementations that change the behavior of truncate() on file descriptors with O_APPEND set. Fixes #1295366 [json config files get corrupted when using Python 2.7.6 on Linux](https://bugs.launchpad.net/calibre/+bug/1295366)
Fix incorrect replace when doing multi S&R and non-leading search expression matches