Move idmap to frameworks/base [1/2]

idmap depends on libandroidfw, so it should go in frameworks/base.
This follows AOSP which moved idmap to frameworks/base back in
February of 2014.

Change-Id: If86df906bddf987fd58e31f947ae78ddd0d2c666
Allow apk path to contain one subdirectory.

In the current directory layout this prevented rm_dex and move_dex
commands to validate the apk path and thus cleaning up resources.

Bug: 16888084

(cherry picked from commit fd88ff2edd954117e36372fb095b6f5f35aad0e3)

Change-Id: I1002529b0c35852c67540d3165d1444523460592
Merge "Allow apk path to contain one subdirectory." into du44
Merge pull request #1 from DirtyUnicorns-KitKat/du44

merged