common: add template function Is<>() testing EbmlElement for specific classes
common: add function for finding an EbmlElement in an EbmlMaster recursively

Returns both the master and the index at which it was found inside
that master.
mmg: implement drag & drop in the chapter editor

Implements #929.