Partial migration to the new tree import API

Changed to_nexml to to_nexson. A few other changes
are marked with @MTH in comments.
uploadid is no longer needed for the initial
upload.
We probably still need to add a nexml2json arg to
this call.