Johtaylo 813 lucene blobs

Andrew is a taking over on this - here is a pull request anyhow.

This branch should contain all the intended Gallery changes. Because we want to do the index writing exclusively from the worker.