m7, add sources from djm34 repo (v6+)

fix most part of indentation and headers

but ive copied whirlpool and x17 stuff in a new m7 folder
m7: adapt cpu-miner for m7 stratum (working)

proper commit based on djm34's work