gca-doi: refactor code into 'generate' sub-cmd
[core.Author] format_name can do inverted names
gca-doi: support generating xml for uploading