Reworked XML parsing to use FileStream + XmlReader for better resource handling.
Resources opened and close properly when parsing.

Also changed config.xml format to use "cmd" for commands instead of previous "link" elements.