Snapshot and restore CE apex data directories.

This adds methods to ApexService to snapshot and restore the CE
apex data directories.

See the corresponding change in frameworks/base for how these are
used.

Bug: 141148175
Test: Manual install/rollback of an APEX with dummy files in CE data directory.
Check that snapshot and restore occur as expected.
Test: atest CtsStagedInstallHostTestCases
Test: New tests added in apexservice_test
Change-Id: I013857f166b5353d7f72601086692cf724683b85
7 files changed