Add keccak mining algorithm

Keccak algorithm is used for copperlark (CLR) mining. Should be
configured with --enable-keccak.
Add bin_reverse and fix calculating block diff

bin_reverse function reverses bytes without allocating memory. It's
needed for implementing new block diff calculating algorithm (bits to
target), cause previous did it wrong sometimes.