Fix #394: Ensure that the timeline.redraw method is not called too often. Improve items filtering performance and first part of timerange filter.