Extract the Jenkins hash implementation

Move the hash implementation to a separate file. There might be other
hash algorithms implemented in the future, and they should be in a
separate file so that they don't take up too much space in utils.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>