Add count_lines for Repository: git or hg

count_lines is now able to count the number of lines of SourceCode or Repository instances

For SourceCode: it extracts the archive and counts the lines
For Repository: it clones the repository and counts the lines (except zip)