If fetch fails, try from next uri
fixed memory leak
reverse apk_path so we can insert new repos first
fix mem realloc bug.
read package lists to an array. use bitmask to associate repo with package
fix segfault bug in is_version. fix performance bug (realloc)
free proper pointer
free repo list properly
version string validation simplification to make it faster. regex was way too slow
added missing packages.c .h files