Genhash cosmetics

Start of cleaning genhash a bit, started with header files to improve readability and used the way vrrp source code is formatted.