Remove __MACOSX

This folder is part of a ZIP file created with Mac OS X containing
metainformation. There is no need for this in this project.
Remove build files

These files will be generated on compilation and should not be part of
version control.
Remove .DS_Store files

.DS_Store is a file created by the Finder application on Mac OS X
containing meta information and should not be included.
Change to Unix line ending and add newlines

The files had a mixed line ending. Also some files didn't end with
a newline.

This also adds .editorconfig which sets some defaults regarding this.
For more information see http://editorconfig.org/. You need to have
a plugin for this to work.
Convert everything from tabs to spaces

Tabs and spaces where mixed together.
Reformat code
Merge pull request #1 from mtneug/clean-up

Code clean up, reformat