XML Import uses command-line arg filename

Process arg for filename. Get the name without path or .xml extension.
DB Query for ImageId where the image's file path contains filename.
(Unique, hopefully).
Put XML annotation from filename into Spectrum through Aperio's
webservices.