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

See #2575 for discussion!
Alright, removing this will finally make the pull get merged then?