TimeTable: correction for frequencies

in frequencies end_time might be lower than start_time, so we must loop
through the day
Timetable: add more test
Merge pull request #681 from antoine-de/freq_departure_board

TimeTable: correction for frequencies