Simplify Elasticsearch initialization
Add pytest section to setup.cfg

All this does is make it possible to run `py.test` instead of
`python setup.py test`, which is convenient when there is a need to
pass some extra arguments.