Extract the backup verification from the backup manager

As part of the work for #428505 (closed), we should extract the backup verification logic:

Currently this does only version checking, but when we decide to allow restoring from a different (supported version), that logic will be done in this new class.

Edited by Gabriel Mazetto