CSV Attachment preview

https://www.pivotaltracker.com/story/show/60067112

This allows CSV attachments on editions to be previewed on the website. We limit previews to the first 1,000 lines of the file. We also reject any CSV files that we cannot reliably determine the character encoding of.