New-style rational resampler is working, but is slow.

Commiting because it works. It needs cleanup and optimization.