Bug 1055891: Add contrast to layer effects. Rename preferences to be consistent.  More comments, some more explicit tests.  r=mattwoodrow