added handler for sessionending event, fixed issue with invalid xml chars, added SessionStart and SessionEnd attributes for xml report