Fixed bug in IpPermission.apply.  getFromPort and getToPort may be null.
Perhaps fromPort and toPort should be defined as Option[Int] instead of
Int.  For new, I set values to -1.