extend core proxy options and handling

- rework the proxy handling in init to cover more cases and work more
  thoroughly
- cleanup RPC call getnetwork info (mainly the help text)
- remove unneeded (int) casts before CLIENT_VERSION and PROTOCOL_VERSION
  getnetworkinfo RPC calls