Fix display for very long allocations.

Allocations can be longer than the timespan resource.first_hour, resource.last_hour. We fix the calender in such cases by omitting slots before first_hour or after last_hour from the availability partitions.
Merge branch 'deif_fix_allocations_longer_than_first_hour_last_hour' into deploy