This patch also factors out the dynarray_t/strlist_t code from ls.c and moves it to dynarray.[hc]. Change-Id: Ifae2b364d7c2733aad5551ad3c78ae72f8ac31f4