Fix error in MTP driver debug on some non english windows locales
newdb: Optimize setting the same value as before for author data

Do not mark books as dirty if the same value as before is set for
author_sort or author_link.
Merge pull request #70 from t3d/stores

Update affiliate links
newdb: Fix temp duplicate catalog entries in book list

Creating a catalog with an already existing catalog in the library would
cause a temporary duplicate entry in the book list (the entry would go
away on restart. Also fix the author sort for catalogs generated in the
AZW3 format not being correct.
Fix a regression that broke downloading news when output format is set to PDF
newdb: Fix replacing formats in a book creating orphans

When replacing formats in a book with a very long title+authors on
windows, newdb could leave behind the old format file, because the
filename shortening algorithm has changed. Handle that case.
Fix bug #1217096
newdb: Fix timezone problem in custom column date edit widgets

Fix a regression that could cause the dates in custom date-type columns
to change in some timezones when using th edit metadata dialog to make
unrelated changes. Fixes #1217096 [After updating metadata (i.e. new cover) home made date column (YYYY) is adjusted too](https://bugs.launchpad.net/calibre/+bug/1217096)

Merge branch 'master' of https://github.com/cbhaley/calibre
Move delete to recycle bin into a separate process on windows

This will hopefully fix any remaining locking errors on windows.
Move apsw_shell.py as the build system does not support modules in src/

And I have better things to do than fix and test the build system.
E-book viewer: Indicate if a KF8 file is a joint MOBI
Update Daily Mirror
Fix #1217623 [Set Undefined 'date'](https://bugs.launchpad.net/calibre/+bug/1217623)
...
newdb: Speed up multisort() by lazy evaluation

The sort keys for the sub-sorted columns are now only evaluated on demand.
The common case is that the keys from the first column will differ,
therefore we can speed up sorting on average by delaying evaluation of
the sort keys for the second and later columns, only evaluating them
when the sort keys of the first column for a particular book differ.
The gains will be particularly noticeable for columns where calculating
the sort key is expensive, like composite columns or the series column.
VFR Magazine by Krittika Goyal
...
Refactor HTML metadata parser

Rewrite the HTML metadata parser to make it faster and more robust.
Fixes #1217751 [adding XHTML book: some METADATA  is not used](https://bugs.launchpad.net/calibre/+bug/1217751)
newdb: Fix refreshdb not working in GUI

Fix calibredb not updating the running calibre instance properly.
Fixes #1218177 [Running app does not refresh list when book added with calibredb add](https://bugs.launchpad.net/calibre/+bug/1218177)
...