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

Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
Merge pull request #6896 from vieux/add_parsing_deamon_side

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