Added .gitignore/attrib

This changed the line ending on all files
Removed the .hgignore
Removed subversion from project
Code Cleanup

based on suggestions by resharper
Formatting and whitespace cleanup