Reindexing is done in background 

* Made it compatible with ES v0.20.6
* Running indexing process in a background thread