Build and bundle the hardware framework

Change-Id: I2e3b6d15b37134c000ca208bbc6158c6f3e56b9c
merge changes from CyanogenMod 10.2 into local branch