Move checksum function to downloader module

The checksum function is useful for pypi checking the checksum of downloaded eggs, move to the downloader module as it isn't really used internally in maven.py and it is good common code.