Moved captive portal to use JSON-RPC communication