Fixed #61 "java - session pool problem"

Added hashCode and equals method for the IPAddress class.