Adam/generalized draft import export 2

@dmitchell -- is this the right idea?

https://openedx.atlassian.net/browse/TNL-574
Does this work properly if index_in_children_list is not present in xml_attributes?