Reorganized key exchange methods, because group exchange is the most
secure.
Added group exchange support for the test server