Added a CLI flag to disable ES publishing

Useful for testing, when we want to read traffic from capture files
and not actually insert into Elasticsearch. Adding -d "publish" to
the CLI prints the JSONs that would be inserted.