cache: add functionality to dt-cli to create and store all thumbnails.

syntax:

darktable-cli --generate-cache --core --library /full/path/to/your.db
cache: move jpg backing store to sha1sum hashed directory, too

this way we support multiple --library files again.