http: Add history controller to JSON-RPC API