Add an in-memory UUID map
Merge branch 'master' of https://github.com/cbhaley/calibre

Speed up retrieving books by uuid by keeping an in memory uuid->id cache.
Tighten up the uuid map code a little