misc: add the function to parse the repository from the tag

In a full image name, it will split the repository from the tag, for
example tsuru/python:2.7, will split in "tsuru/python" and "2.7".

Related to 2dc7f6c67ceb195e23161418f45a60cee62da495.