New creates a new indexer.Interface implemented by a pogreb-based value
store.
The given indexer.ValueCodec is used to serialize and deserialize values.
If it is set to nil, indexer.BinaryWithJsonFallbackCodec is used which
will gracefully migrate the codec from JSON to Binary format.