Added popular books.
Show y-axis labels on the right.
Enabled pie chart support to flot graphs by including jquery.flot.pie.min.js in vendor.js.
Added loans-per-type pie chart.
Added author info to loan stats.
Added popular authors to lending stats.
Merged all subjects into one column.

Also moved popular books/authors near subjects.
Added loans-by-published year graph.
Add publish_year to solr stats.
massage regions before adding to solr.

In some cases the fullnames of regions are used insted of short state
codes. In some cases, the state code has leading spaces. Handled both of
these cases.
Limited the stats for past 30days and added an option to change the time period.
Added stats by loan format.
Added pie chart for loan duration.
The loan stats are now stored in stats table in postgres.

The couchdb stats database is still updated, but will go away
eventually.