Add switching and barrier function materials (#4355)
Register materials and add test (#4355)
Fix indentation, use switch (#4355)
Merge pull request #4357 from dschwen/pfswitch_4355

Add switching and barrier function materials