Move ipset functions to separate file.
Convert main functions file from latin1 to utf8 encoding.
Fix: ipset version checking now runs only once.