Allowed net::IP to be created from a dot decimal string.

Review: https://reviews.apache.org/r/22294
Used the new net::IP interfaces.

Review: https://reviews.apache.org/r/22295