Add metadata to the resource of elements created by LoadFromDocumentElement subclasses indicating the derived resource. This allow recipients of MediaFactoryEvent.MEDIA_ELEMENT_CREATE to be able to determine where a created element derives from. Updated F4M code and SMIL code, plus unit tests. Also added MediaType to resources generated by SMILMediaGenerator, in case they lack file extensions.