Add CSV export to split dashboard.
Avoid type mismatch errors when a rails app uses CSV in ruby 1.8
Merge in craigmcnamara's export functionality