libs/core: add is4linklocal(), is4rfc1918() and is6linklocal() to luci.ip