Factor out profile trigger code into separate class.

Makes it easier to extend the trigger mechanism later on.

Change-Id: Ied318e7efa7e1755022deecb8172f862943ca6ac
Cleanup.

Change-Id: If5fc34b681615e600430478807c53f6d4440a5ec

Conflicts:

	services/java/com/android/server/ProfileManagerService.java
Profile: disable triggers when profiles are disabled

Change-Id: Ic25bd90deb1979f2a7f21a5b588e5f1e18834864
ProfileManagerService.java: fix derps
Restore ProfileGroup notification override functionality

Also clean up a little.

JIRA: CYAN-3164
Change-Id: I9b71a225996315f517b59d2d6f4074175bbf2d64

Conflicts:
	services/java/com/android/server/NotificationManagerService.java

Conflicts:

	services/java/com/android/server/NotificationManagerService.java