Added _g() - convenience method to get/set a global variable.
Added _addvar() to make variables from PHP available to Javascript on the front end with LC.vars