refine some declarations in header files

Remove duplicate declarations and move some other declarations to
addrtoname.h where they belong.
NDOize timed decoder