Forward Port: Theme Engine Support for 4.3

Credit to Ricardo Cerqueira for 4.2 squashed commit

[*]Updated 4.3 support for the old T-Mobile theme engine, as usual
needs the provider and switcher apps installed as well.
==============================================

Updated 4.2 support for the old T-Mobile theme engine, as usual
needs the provider and switcher apps installed as well.

I'm finally dropping the 400+ commit history on this, since everybody
else keeps picking it up from CM as a single patch anyway... But
for the record, nothing of this would be possible without Josh, Ed,
and the rest of the TMo guys who wrote and maintained it until 2.2:

amit chabra <amit.chabra@t-mobile.com>
Amit Kohli <amit.kohli@t-mobile.com>
Chris Cogar <chriscogar@t-mobile.com>
Dirk Sigurdson <dirk.sigurdson@t-mobile.com>
Ed Carrigan <edward.carrigan@t-mobile.com>
Gaurav Sharma <gaurav.sharma3@t-mobile.com>
Hui Feng <hui.feng@t-mobile.com>
John Ritz <john.ritz1@t-mobile.com>
Josh Guilfoyle <josh.guilfoyle@t-mobile.com>
Mark Roberts <mark.roberts48@t-mobile.com>
Pankaj Kumar <Pankaj.kumar6@t-mobile.com>
Samuel Cheung <samuel.cheung@t-mobile.com>
Sergey Ten <sergey.ten6@t-mobile.com>

Change-Id: I7148d51be48f28a2dc4bdf9ec9018f04b268ffc4

Signed-off-by: ayysir <dresadd09691@gmail.com>
(cherry picked from commit ceea1ebc518e334c23134890ec4dbfa9bb8313c3)

Conflicts:
	services/java/com/android/server/wm/WindowManagerService.java
derp
TE AndroidRuntime.cpp: Missing register_android_content_res_PackageRedirectionMap

Signed-off-by: ayysir <dresadd09691@gmail.com>
(cherry picked from commit 02db32c3de18978f08d7892bb2f66679b79b3d56)

Conflicts:
	core/jni/AndroidRuntime.cpp
TE AndroidRuntime.cpp: Missing register_android_content_res_PackageRedirectionMap

Signed-off-by: ayysir <dresadd09691@gmail.com>
(cherry picked from commit 02db32c3de18978f08d7892bb2f66679b79b3d56)

Conflicts:
	core/jni/AndroidRuntime.cpp

(cherry picked from commit fef3666fdd2a54c35a3d969c7d815d2a5adb7800)
Derp