Adds test for client.delete().
More tests.
Remove unused logic in rest handler.
Update dev deps to new elasticsearch version.