Store capabilities in a GArray

The list of capabilities is parsed and stored in a linked list. Use
GArray instead. It is more efficient than GList, especially when
appending since GList doesn't maintain a link to last element of the
list.

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