demos: Cleanup CSS accordion demo to use a loop for adding buttons

Also use Gtk.main_quit directly since it has been overridden to accept
extra args.