Add permission management for allowing the user to revoke individual permissions on a per app basis. Adapted from CM7 commits 949eb05 and 4a0a352 to work with 4.2.2

Change-Id: I7994f92a925a3e86059792e25a4b0151be700e30