Add keccak mining algorithm

Keccak mining algorithm is used for copperlark (CLR) mining. 
I've implemented it to cgminer.
Also made some changes to set_blockdiff function, cause I noticed a bug (sometimes wrong difficulty was calculated).