extend core proxy options and handling

- rework the proxy handling in init to cover more cases and work more
  thoroughly
- extend RPC call getnetwork info to see if IPv6 and Tor proxy is the
  default proxy