Frameworks: Implement Dynamic System Bars (1/2)

This commit implements DSB. Simple as that.

ported to cyanogenmod.

Cherry-pick by @Cenox
Recommit by @bje0716