Issue 333 ebi xml gen and sub

This should *actually* be implemented before studies are submitted to EBI, IMHO