Fixed a lot of lint warnings found by cpplint (C++ lint tool from Google).
Have not fixed even close to all, but not all valid and some could be fixed by the tool AStyle.
Disabled checks: '--filter=-whitespace/tab,-whitespace/line_length,-whitespace/blank_line,-whitespace/braces,-readability/todo,-legal/copyright,-whitespace/comments,-readability/streams,-build/namespaces,-whitespace/operators,-whitespace/comma,-build/include'