Added isUDP to lua functions, documentation and example script

Splitted commit from https://github.com/PowerDNS/pdns/pull/1222