PDFgui file writer

This is originally trac ticket [#10190](http://trac.mantidproject.org/mantid/ticket/10190).

**To test:** generate data like the unit test, then load it into PDFGui and plot it.