Implement (and test) auto app upgrade