improve rotation handling

this commit was rewritten/inspired by one made to our jb 4.1 branch by sonicxml.

cheers buddy!

Change-Id: Ib3b46aa54e7bf6602f8c0557ed770624063af529
Fix gradient. Credit to UBER.

Conflicts:
	core/res/res/drawable/background_holo_dark.xml

Change-Id: Ib5ae1734de2adb87ea34d03f309f30dd3b3076d1
Merge "improve rotation handling" into illusion-4.4
Merge "Fix gradient. Credit to UBER." into illusion-4.4