Fix issues with segmentutil

Handle overlapping scheduled segments (throw them away)
Handle gaps in basals