Factor downsampler out into library v0.2

Lose Secret Rabbit Code dependency