use selected fields for csv export

limit number of messages to 10000 to avoid running out of heap.

fixes #766
Merge git://github.com/Graylog2/graylog2-web-interface into develop