Add network node whitelisting based on jgarzik's previous pull req.

This takes jgarzik's previous pullreq (#3403) and rejiggers a few things so that you can now add IP:0 to allow any port and so that banned nodes can make incoming connections as well. Also fixes an off-by-one in the param count for the listwhite RPC.