Use a GPtrArray instead of a GSList for storing sessions.

Closes issue #1.
Place G_GNUC_UNUSED in the right spot.