merge all nntp code in nntp.c and move it toplevel