Refactoring the OTA upgrader part
Added check of metadata first, so we do not need to download the whole commit to decide if it fits for our system.
Refactored _ostree_upgrader_update_thread()
function to allow to use
the advantages of metadata check prior downloading the commit.
Edited by Denis Pynkin