Misc. fixes around attachment indexing, added some reporting and
refactored index worker.
Merge pull request #30 from niravthaker/master

Misc. fixes around attachment indexing, added some reporting and