Move flate from core to std

r? @graydon

I don't think this is necessary in core.