Fromto

This is more than a  week's worth pf changes. Some introduced bugs that were later fixed...
I figured instead of revising history I'll suggest to pull as is, but if you'd rather have fewer commits and a "cleaner progression" I can spend the time to do that (but that will take another day or more likely two).

Either way, this definitely needs serious testing and solid review by someone with better javascript skills than I have.