Add Bitburner a1 support

This is my attempt at merging https://github.com/jameshilliard/cgminer-miningman with mainline, might not quite compile correctly, hoping someone can point out any mistakes I made.