Use the new 'Offline' interface to do offline updates

This removes a ton of duplicated and hacky pkexec code.