luci-base: rework client side IP validation types and support "hostid" type