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

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