Csv export support for histogram panel

This patch enables csv export support for histogram panel. I'd like to see some feedback.

![view](https://f.cloud.github.com/assets/89186/1352676/dc44d80a-373a-11e3-972a-7f0afeb83e30.png)


#205 is affected.