Peer: fix the case where dependency download is disabled. It wasn't sending transactions to the wallet before. Add a test for this and add accessors for the setting.
Peer: reindent lines to match code style.
Replace "poor man's (aka. really, really poor) JSON parser" by Jackson for the script and tx tests.

The tests semantics was unchanged. 161 lines of code removed.