giscanner: add a collections.Counter backport for Python 2.5 and 2.6

and put it in a giscanner.collections package. While here, also move
our OrderedDict into said package.