Coinbase checking for GBT & Stratum pools

Finishing touches superceding #540