mining: Add priority calculation tests.
mining: Add priority calculation tests.

This adds tests to ensure the priority calculation produces the expected
values.  In order to accomplish this, it introduces a mock priority
input source which implements the newly introduced PriorityInputser
interface.

decred/dcrd,jrick/dcrd,decred/dcrd,jrick/dcrd