Refactored (ip2long to inet_pton), added CC3 functions, ported rangeByAddr from C-api