Add test MaxPermSize settings in build
Up MaxPermSize settings in test build config
Moving MaxPermSize settings to gradle.properties
Ensure bson module jdk1.6 fixes
AbstractBsonWriter refactoring

DRY up implementation classes
JAVA-1290
Renamed ServerMonitor test
Removed dead code in DefaultServer test
JAVA-1295: Using difference between the current and previous exception in ServerMonitor to determine whether to log a state change.
Removed unused method from ServerError helper class
Removed BSONObject dependency from com.mongodb.MongoException
Removed CommandResult dependency from com.mongodb.DuplicateKeyException
Removed CommandResult dependency from com.mongodb.WriteConcernException
Started moving exceptions and related classes from driver-compat to driver:
MongoException
WriteConcernException
DuplicateKeyException
WriteResult
WriteConcern
Moved most exceptions in com.mongodb package from driver-compat to driver
Replaced org.mongodb.DuplicateKeyException with com.mongodb.DuplicateKey
Replaced org.mongodb.MongoIncompatibleDriverException with com.mongodb.MongoIncompatibleDriverException and
org.mongodb.MongoInterruptedException with com.mongodb.MongoInterruptedException.
Removed MongoServerSelectionException
Removed org.mongodb.MongoCursorNotFoundException
Removed org.mongodb.MongoWaitQueueFullException, org.mongodb.MongoExecutionTimeoutException, org.mongodb.MongoInternalException, org.mongodb.MongoTimeoutException
Removed org.mongodb.MongoSocketException and moved all its subclasses to com.mongodb, extending com.mongodb.MongoSocketException