Fix optimize tests

When the parameters passed through to the optimize method were altered
the tests were not updated to reflect. This brings the code and tests
back inline.
Bump pyes version

There are a lot of fixes and most importantly elasticsearch 1.* support
in between the old and new version. We should keep this tool relevant
and bump the version.
Update estools version

We have upgrade a dependency while leaving the public API the same so I
am bumping the patch number.
Merge pull request #7 from alphagov/bump-pyes-version

Bump pyes version