REFACTOR analytics to make elasticsearch a separate plugin

https://github.com/prayagupd/gccount/issues/13