General REST API for a web client on top of BitcoinJ