Add basic support for writing cdex container in dexlayout

Pass compact dex level option to dexlayout and generate a file with
a compact dex header if it is enabled.

Added test in dex2oat_test.

Added logic to check for CompactDexFile header in
DexFileLoader::OpenCommon.

Bug: 63756964
Test: test-art-host-gtest-dex2oat_test

Change-Id: Icfec03cdb64f71de900b92754ab4be3789c71cc3
16 files changed