ACL: Rewrite a bit the IP address parsing and handling
Merge https://github.com/tvheadend/tvheadend