Improved the variable substitution (all references in a string are replaced). Added special redirect loading code (to separate card dependant code to single files).