Upgrading from Bitcoin

- Split up bitcoinrpc (code movement only) (Wladimir J. van der Laan)
- prevent Windows redefinition warning cause by compat.h (Philip Kaufmann)