Tweaked Emitter getter/setter names to match previous convention.
Separated the variable access from the actual emitting logic into
AbstractEmitter.  Made a NullEmitter that does not output.
Renamed Emitter._xmlactions to Emitter.xmlactions.
Moved emission-related code out of Main into Emitter.