Added to_xml methods for ScanSummary class

The addition of to_xml methods for ScanSummary class so that a complete
xml representation can be created from the class. It uses the
formatting defined in the API spec and mimics date formats etc.