Add integration tests

Closes #36.
Update to elasticsearch 1.2.0

Related to #30.