Adds utilities to deal with difficulties and targets
Fixes bug with building coinbase outputs
Fixes bug serializing prevhash into block header