Fix problems with DexClassLoaderTest.

This fixes a problem with the DexClassLoaderTest where oat files from
previous tests were being cached and reused for later tests. Now each
test uses its own directory for loading-test.dex and friends so they
are treated as separate dex files from test to test.

As part of this fix, the helper functions for the tests were
reorganized.

Bug: 21033982
(cherry picked from commit 5f81ff794e9e4f480bd0011a870afc2b08060e42)

Change-Id: I4e35914dc365042ea2f71ad20933381f34502b9a
1 file changed