More CVar stuff

Lots of functions added, but still more to come.