Remove hashlib fallbacks

Supporting Python 2.4 meant that we had to use the separate md5 and sha1
packages instead of hashlib. Now that we're 2.6+, we can rely on hashlib being
present.

Testing done: Ran unit tests
Reviewed at https://reviews.reviewboard.org/r/4913/