lib: move library code to libubox, add ubus config handling code