autoupdater: enable list of mirrors for manifest and firmware.

When update preparations fail the autoupdate process gets restarted with the
next mirror in list. Therefore the update process is refactored into
functions.