Changes to fix CT calibration issues with the real time Train plot.
Logic changes to enable real time plotting to resume properly after calibration.
Minor cosmetic fixes of missing #defines for media support