correctly serializing and deserializing indexes, so we now handle deltas.  improved error handling.  allow clients to pass a string as entity (for a single entity), as well as an array of multiple entities