backported uhttpd2 from openwrt trunk