Add repo/tag parsing on the daemon for pull and import

Close #6876

Blocked by #6908 for the API bump & doc