Synchronously queries the server for its capabilities and returns them in a List.
a List of server capability strings. Free the list elements with g_free and the list itself with g_list_free.