New editor class and cleanup

Separated out the editor commands into a separate package. Will soon
migrate ucdthesis to (hopefully) replace ucdavisthesis class on ctan.
Replaced some defs with (re)newcommand. Added namespace to some
variables.