Metadata extractor plugin and some minor fixes

Though the plugin can run without a Girder server install, if that makes a difference.