Move toString for DataPair to correct place
Add safety checks in DatePair to guarantee startDate is before endDate
Move isWithinPeriod method from Logic to DatePair/Task.

Note that no test is created yet.
Merge branch 'quality_control'