Bugfix: rpc id was always 1
Merge pull request #29 from gavinandresen/rpc_id

Bugfix: rpc id was always 1
Add write support for Decimal values

AuthProxy would return Decimal objects, which is great.
But could not JSON-encode Decimal objects, so things
like this didn't work:

    balance = connection.getbalance()
    connection.sendtoaddress(foo, balance/2)

The fix is a little EncodeDecimal helper function.

Tested in some Bitcoin smartfee regression tests I'm writing.