Metadata extractor plugin and some minor fixes

Allow time for the server to receive the sent metadata and add it to the item.