Add NVRAM functions from mabarnett0's pull #20.