fb: less notifications sound (1/2)

add back the 4.3 feature like it was.
User can setup how often notification sound
for an app comes trough so that
it does not annoy to much

(cherry picked from commit c9febc715df1f93e1bf5a80b36775f37ff000dde)
Framework: safe headset volume option (1 of 2)

thanks DvTonder

Change-Id: I5355820a24d48c1d8f54ea17a7022d891ad07857

Conflicts:
	media/java/android/media/AudioService.java

Conflicts:
	core/java/android/provider/Settings.java

(cherry picked from commit e3a91e05f0fac621ce7b795939a78507f36fac6c)
(cherry picked from commit 5e503e2ba3d3dc2c0e183ada6aa26f2bcf91c6ed)

Conflicts:
	core/java/android/provider/Settings.java

(cherry picked from commit 6611ba6d72feb11f8e4eccbae826ae5c68c70d84)
Option to use volume keys to control media volume anytime [1/2]

The volume keys control the Media volume rather than the Ringer
hence removing the issue of accidentaly changing the Ringer volume.

Credits: Pawitp

Change-Id: I789e05bdb0bb7c968f71e4e10f4a759b3dbd0b59

(cherry picked from commit ee22615ca993f369728f7b56cd135140b8892741)

(cherry picked from commit d0e1e4608d3903981c884f49cb92edb054ea6c2d)
services: fix memory leak in ColorFade

original patch from
   https://code.google.com/p/android/issues/detail?id=79729#c177

i can not get the email to add proper authorship, but all credits belong
to this person

Change-Id: Ica9a4ae02cd3c8435f46dd9c3bfdb52317f9a7ef

(cherry picked from commit ba963e20e43fc1ed33243253560b7ceab9d6a760)
Fix bad .9's

(cherry picked from commit b6cf396f760a2e57fedc8c79c8653d32812ae76b)