Style sweep for function names in headers

All functions that are declared in headers are now PascalCase.
Styled translation unit free functions
Improved style conformance of ~1/2 the cpp files
More general cleanup

Mostly indentation and comment cleanup.