Added DateTime support to scripting vars

DateTimes are now saved as strings and parsed as DateTime on load,
shorter and easier to read than a Base64 string.