Fixed the history time scaling function.
fixed branches being misordered
fixed abrupt transition when time starts needing to be squished up
Fixed graphical glitches when at the end of a branch
Fixed "decay towards desired" rules
Fixed motion creating tiny branches