Fixed some copyright text.
2013 copyright, also fixed copyright-related contrib/ scripts to use git instead of svn
Some cleanup and copyright updating.

* updated copyright notices at top of all sources
* fixed numerous files with DOS newlines
* cleaned up some comments/ifdefs
* some spelling corrections
minor cleanup