Bug 1024098, Add some helpers for principal verification with PBackground. r=mrbkap.