Add a method for requesting authentication methods

The server may not support the authentication method we use. We should
check which authentication methods the server accepts before we attempt
to use them. Add a method which requests and returns a string with
supported authentication methods.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>