Command line interface

**Work in progress**

Mostly to test travis integration with elasticsearch for now.