Add main.[ch] file for test
Add autoconf/automake file. Test make btdownloader OK.