Starts working on a refactor.
Swap http/https for request.
More tests.
Updates for the elasticsearch refactor.
Adds test for client.delete().
More tests.
Remove unused logic in rest handler.
Update dev deps to new elasticsearch version.