Fixed a bug with function for updating documents.
Fixed a bug with logger format.
The first working version:

* Gets all documents needing downloading thumbnails.
* Downloads the thumbnails.
* Updated the document in couchdb.