installd: squashed revert of unintentional patches from CM

These reverts fix an issue with installing some applications.

commit 6f50eb0be2d75ade847008bfe43844745490cea6
Author: synergy dev <synergye@codefi.re>
Date:   Wed Jan 8 04:29:58 2014 -0800

    Revert "DexOpt anything on /system in /cache/dalvik-cache"

    This reverts commit 4ff8448cc41eea749e59b316e456777b3d9ca1ed.

commit 8dc58cded68373bca2350c013cf9bca04b71d026
Author: synergy dev <synergye@codefi.re>
Date:   Wed Jan 8 04:29:42 2014 -0800

    Revert "installd: Delete cache properly for devices using datadata partition"

    This reverts commit 993b066366b2065c4b9de491f386c585207d4e02.

commit 0787f8bfd0c8071cb4684deda5a43cc2fae2c840
Author: synergy dev <synergye@codefi.re>
Date:   Wed Jan 8 04:29:26 2014 -0800

    Revert "installd: Invert the default for dexopt-on-cache"

    This reverts commit d018d2ecb3ee31bc549e6b43f8e6b5564569d63a.