Ruby 807: Raise exception when driver does not support server wire versions.

Added features for ease of adding them in the future and refactored a bit.