Separate download queue for thumb1 and thumb2.

Also:

  * Fixed misc mem leaks.
  * listDir takes offset and limit argument.
  * Thumbnails are stored in Caches dir instead of tmp.