Add test apps and RollbackUtils APIs to support RollbackTest

Add APIs and test apps as part of migrating RollbackTest to
use cts.rollback.lib and cts.install.lib.
Much of the API was migrated from frameworks/base/tests/RollbackTest.

Also add special handling for uninstalling Network Stack.

Test: atest RollbackTest
Test: atest StagedRollbackTest
Test: atest CtsRollbackManagerTestCases
Test: atest CtsRollbackManagerHostTestCases

Bug: 132422403
Bug: 132757394
Bug: 134653708
Change-Id: Ic58d5f7f37071d6423c4bdc1ab424d1347983b36
22 files changed