Some cleanup and copyright updating

* update some copyrights for 2013
* fixed numerous files with DOS newlines
* cleaned up some comments/ifdefs, indentation
* some spelling corrections
* add some missing makefiles
update copyright at top of all sources
some term reg visitor cleanup