Add argument to DuplicateKeyError

Along with the proper arguments for the duplicate key error the
assertion for the insert parameters needed to be dejsonified.  The last
change required was short-circuiting the logic in the consumer if a
duplicate was found.

Issues: #38.