Performed major overhaul of the system variable replacement function.  System now does not have to have the variables defined in code, only in the values passed to the function and the system that is running the application.