feat(cros_generate_update_payload): Add features from core_upload_update

Add the metadata generation and signature verification steps from
core_upload_update to keep similar operations together.