bridge: Add cockpit-bridge --packages to list packages

This command line tool lists the installed packages, their
paths, checksums and aliases.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
bridge: Fix checksum issues with packages

 * Make order of finalizing the checksums irrelevant
 * If a dependent package isn't cacheable or doesn't exist
   then don't allow a checksum

Closes #1350
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Signed-off-by: Marius Vollmer <mvollmer@redhat.com>
 - Fixed memory leaks