SSL: Protocol version handling cleanup. The protocol version is now represented the same way everywhere; a 16-bit integer with the major (ie 3) in the high 8 bits, and the minor in the low 8 bits. Previously there was a mix between having a two element array, and just keeping track of the minor. Also strengthens the types of version variables in a few places.