Minor updates.

Added XmlMode (Default, First, All) which use 3 different XML parsing
approaches.
Fixed mail connection and action.
Allow run action to run independent of template.