Add .clang-format and use it.
Merge pull request #160 from lindegroup/clang-format

Add .clang-format and use it.