Added save functionality to TextFile model.  This uses eligrey/FileSaver.js