fix update api url, test and change update params
Tweak style, and accept empty docs and upserts.
Make the update method work. Fixes #57.
Add the `fields` querystring param, supported on index and update since 0.20.