nialogic: moved basics,ansi,testing stuff to own files
nial: moved misc routines over from my main codebase.