Solve "multiple main() function" issue

1. separate the main() in /ntpd from other functions, put main() in a
new file ntpd.c
2. add ntpd.c in /ntpd 's makefile.am
3. don't add ntpd.c in /tests/ntpd 's makefile.am