PERF: cythonized parts of to_csv for increased perf
PERF: more speedups
ENH: add chunksize parameter to DataFrame.to_csv to enable constant memory usage
     by writing in chunks