Most PUT requests to ES were returning HTTP400 due to the connection closing prior to sending all data (JSON parse error in ES). That's fixed now.

This commit also brings with it the beginnings of the logic for removing items from the ES index whoch are no longer present in the source.

There's probably a bit of debug logic in here, as well.