Fixing another error in ElasticSearch

It's like the author hadn't written tests at all!
Fixing typos; fixing bulk queries.

Also deleting some useless imports to completely satisfy pyflakes.

Seriously, what the fuck is up with this library? I guess I'll have to write a
pile of tests because I have no idea what other stuff is subtly completely
broken.
Merge remote-tracking branch 'refs/remotes/habnabit/master'
fix getMapping