Fix header and footer template boxes too small in PDF output options in calibre 2.x
Fix change that broke restarting with calibre-debug -g
Download metadata dialog: Get rid of the Next button

I am tired of being asked why the Next button and the OK button do the
same thing, even though they dont, quite. Since the purpose of the Next
button is to prevent the Back button from changing button positions,
when it appears, remove the Next button and move the Back button out of
the button box, so that it cannot change button positions.
When downloading https resources with a self-signed certificate, handle python 2.7.9's API breakage

See #1402579 (Can't install calibre due "ssl.SSLError: [SSL] PEM lib (_ssl.c:2525)")
Fix problem of invalid datetime metadata coming from a device.
1) Catch errors in the smart device driver
2) Return None in the json_codec if a date cannot be parsed.
Merge branch 'master' of https://github.com/cbhaley/calibre
Use TLS 1.2 when available for https
Use a functionality check on the SSL module instead of checking version numbers, since there are distros out there that backport patches without changing version numbers