GetTagFromNamedRef returns a tag from the specified reference.
This function is necessary as long as the docker "server" api makes the distinction between repository
and tags.
Parse parses the given references and returns the repository and
tag (if present) from it. If there is an error during parsing, it will
return an error.