RPC: Separate out JSON-RPC processing; prepare for HTTP REST processing.
Add unauthenticated HTTP REST interface, for querying blockchain data
REST: remove Bitcoin-Format header.  Replace with URL suffixes /json /hex
REST: Use lookup table for data format selection