qa/rpc-tests: Test prioritisetransaction

Built on top of #5398 for now; if we decide not to merge that, this needs to be refactored.

This also adds non-standard extensions to getblocktemplate to override its caching and provide the adjusted priority/fee values used. It might be desirable to add an option so the latter is only added for this test - thoughts?