refine libdg_loop interface
add multi-thready support for libdg_loop
dg_nml_loop config file support