move GetPoWHash to CBlockHeader class

It is semantically similar to GetHash and operates on block headers, so it belongs here. This makes merging Bitcoin PRs easier and makes the code more sane.