Switch miner.cpp to use sha2 instead of OpenSSL.
Add SHA-1 implementation
Move crypto implementations to src/crypto/