Derived collxml + trigger

fix shredding of derived collections: previously grabbed id and version of parent, but tree of current. Oops.
Also add copyright info to sql files, and trigger support so files named collection.xml are automatically shredded when added