Add previous block checking in the proof-of-stake miner

This should help against orphans.

Conflicts:
	src/miner.cpp
	src/wallet.cpp