common/archive: Add branch names filtering support in lookup_snapshot
Enable to filter returned branches according to their name in
lookup_snapshot and lookup_snapshot_sizes.
Using the optional branch_name_include_substring parameter will
only return branches whose name contains the provided substring.
Using the optional branch_name_exclude_prefix parameter will
not return branches whose name starts with the provided prefix.
Related to T2782