Update created? check for new API compatabiity.

The new ES API removed :ok <bool> from rest responses and instead relies on
a :status <status code>. See: https://github.com/elasticsearch/elasticsearch/issues/4310
for the corresponding ES change.

Updates to related code and and some tests.