Frameworks: Combine headset plugged commits from Omnirom

[1/2] Base: opens music app when headset is plugged
[1/2] base: Headset plug: Disable if music is active

Patchset 2: Removed a previous case that was blocking intent from launching music app

Change-Id: I9ef71c571d23fbc8a83dfcc94191efa3ffdbc763
Merge "Frameworks: Combine headset plugged commits from Omnirom" into kitkat