flatpak_repo: Support specifying a branch for images
This allows creating multi-branch Flatpak repositories with a single element.
It allows a nice cleanup as a follow-up to freedesktop-sdk/freedesktop-sdk!10616 (merged). I already have the cleanup commit ready.