Squashing all needed stuff for 4.2.1_r1 htc endeavoru.

Credits to Adrian Ulrich for his AOSP repo's many
useful stuff.
Still under development, but should work with a
few quirks in the built rom.

Change-Id: If8717e720ef18446bfcca360b36bda30d0be0df5