Format a better message for duplicate key violations.

Fixes #527
Test updates
merge nathanlws: Format a better message for duplicate key violations

Merge pull request #981 from nathanlws/sql-layer/better-duplicate-key-msg
https://github.com/FoundationDB/sql-layer/pull/981