Adding MD4 and refactoring common behavior with SHA1 into a new class.