logout and rawRecipientDataExport

Export function could do with some validation
include rawRecipientDataExport

includes  getJobStatusLoop modified from
https://github.com/Boardroom/smart-popup/blob/master/test_sp_export_api.
php