Refactored painmessage.gs so XmlService is not longer needed, added Jasmine test.