Remove some duplicate logic.

Remove the duplicate logic for loading training plans in Main. Remove
duplicate code in NewMarathonDialog for checking validity of training
plan files.