Support sharded DuplicateKey exceptions

JAVA-1103
Deprecated all methods and constructs in DBRef and DBRefBase that depend on the DB class. Also deprecated DBRefBase.

 JAVA-1505