Refactor GetDifficulty from RPC
Summary: It doesn't go fetch global state implicitely now and is declared is the proper header.
Test Plan:
make check
Reviewers: schancel, #bitcoin_abc
Reviewed By: schancel, #bitcoin_abc
Differential Revision: https://reviews.bitcoinabc.org/D619