Minor tweaks
Fixed the long waiting bug in waiting lists.

There active waiting loan isn't getting expired after 24 hours.
There is a bug in processing waiting list, that was pushing the expiry
date by one day everytime the script is run. That should be done once
once. It has been fixed.
Hook for IA to figureout if a book is loaned out in OL.
Merge pull request #159 from Zearin/patch-1

Minor tweaks
Don't lent out a book if it is already lent out by IA.
AB testing the borrow page layout.
AB testing: ability to force an alternative using query param.

Useful for testing and debugging.
Added another alternative for borrow-layout.

Just changed the text below the book reader icon to "Recommended!".
fixed broken links
Fixed bloated loan stats displayed on home page.

The loan stats were being counted from the infobase logs, which
sometimes have multiple entries for the same loan. Fixed it by taking
loan stats from stats table in the database.
start storing admin stats in store as well, so that we can phase out couch.
Fixed broken stats on home page.
Make 'json' real JSON in single changeset (fixes internetarchive#206)
Replace assert statements with if-then and if-then-raise
Log ISBN transformation errors using the openlibrary logger
Merge pull request #217 from bencomp/issue206

Make 'json' real JSON in single changeset (fixes internetarchive#206)
Merge pull request #219 from bencomp/issue191-

Replace 'assert' statements with 'if/else' and other 'try/except' statements (fixes internetarchive#191)
Avoid hitting solr for finding subjects when there are too many seeds.

Solr has a maxBooleanClauses constraint that causes the query to fail if
there are too many OR clauses. Skipping solr and returning empty result
when there are too many seeds to avoid crash.
Sync infogami.

Changes:
* Don't allow multiple accounts with case variation in email.
Fixed subject search with multiple words.

The issue was caused by double escape of query.