hnetd: some openwrt-integration and stability fixes