bitcoin-api 0.9 legacy compatibility, various bugfixes

To communicate with bitcoin version 0.9 use the BtcJsonLegacy class instead of BtcJson.