fix persistence code to handle empty refId values; remove dud application properties test class; re-loadchanged webapp
Handle payload attachments when extracting the message payload from the full XI payload by setting the content type to plaint text when attachments are present. This stops an invalid XML document being sent back to the web app and allos it to choose how to deal with the payload.