flatpak: Use apps' unique ID in debug messages
Printing out the simple ID is often insuficient to understand which app the message is refering to, so when possible, we should always print the unique ID.
Commit originally by @jrocha; I just rebased it and tweaked the commit message.