Add stop refreshing when indexing

See #331

* add start refreshing and optimizing after data is indexed
* add indexing in background (aka "parallelizing")
Merge pull request #519 from lobid/issue-331-performance_es_refresh

Issue 331 performance es refresh