[1/2] Base: opens music app when headset is plugged

Change-Id: Id8b7c9e9853088b4ffa3c822caac1b3f96def9bf

Conflicts:
	media/java/android/media/AudioService.java
[1/2] base: Headset plug: Disable if music is active

PS6:
-I want to understand :)

Change-Id: I7ae31121b08fbf99c32bade8df4f291a99b1abaf
base: Moves isAvailableApp and isAppInstalled to PackageUtils

Change-Id: I78494839fb2e521666fae82d2168131fa2bbd093

Conflicts:
	core/java/com/android/internal/util/omni/DeviceUtils.java
	media/java/android/media/AudioService.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
[2/2] base: Headset: headset actions improvement

Adds "Kill app" and "Move app to front"

New logic with more actions and events

Change-Id: I58cef9112c89e4c8ec625e57bdce471f1aaf881a