Adding IP comparison

Checks if two addresses are the same. For now it only support IPV4/IPV4 and IPV6/IPV6,
mixed mode is not implemented yet.
Merge pull request #639 from cduclos/master

IP address comparison