add codecRegistry
bug fix
add default codecregistry to mongo
remove unused imports
add docs
\codereview changes
Add database options test
Merge branch 'registry-option' of https://github.com/guoyr/mongo-java-driver into guoyr-registry-option
Merge branch 'guoyr-registry-option' into 3.0.x
Allow count to work with query hints

JAVA-1344
Port DBCollection changes to allow hint to work with count

JAVA-1344
Fix test logic
Removed unused constructor in InsertRequest

JAVA-1419
JAVA-1303: Removed CommandResult dependency from operation and protocol implementations
JAVA-1303: Removed dependency on CommandResult from com.mongodb.connection
JAVA-1303: Removed org.mongodb.CommandResult class
JAVA-1303: Simplified test
[Build] Updated the version of codenarc since the previous one was throwing exceptions for tests that used IgnoreIf; added exceptions to the configuration file for new formatting checks that are more effort than necessary to fix; fixed the easier errors that cause (new) formatting checks to fail.
Simplified CommandOperationHelper

Normalised order of args and added missing methods
Moved SingleResultFutureCallback to protocol