Rewriting the miner code from scratch

The miner codes of before are designed for CPUs in mind, not FPGAs. By
having a more FPGA focused written C code, it'll ensure that it works
properly.
Revert "Rewriting the miner code from scratch"

This reverts commit 306b1b50632fe8d9a91033bf637a67b6ae3b70a9.