CSHARP-1146: Modify ReadPreference to use Optional<T> and With method.
update console test app to shutdown properly.
CSHARP-1123: removed unnecessary classes after refactoring connection handle to use same pattern as elsewhere in code.