Optimized process_stat script.

Made it fast by using the archive.org database instead of metadata API.
storing just the part of the library url and lowercase region in solr.