fix multiple issues in timeline window threading code
- take baseIndex into account
- make sure the key is always set
- initialize indices for thread timeline
- improve threads appearing within initialSize of timeline
(1st event still needs to be mainline)
- don't get stuck behind thread markers when creating a new window
- cleanup