Minor LoadedApk refactoring.

- Rename varaibles holding LoadedApk to make the code easier to read.
- Move resource creation into LoadedApk, consolidating the logic.

Test: manual
Change-Id: I6bdc70482fbbb346ff694ada528ded18d3a63ef7
8 files changed