Added astylerc and pre-commit hook

This PR adds a `astylerc` file for formatting with astyle.

I'm not sure whether to add a pre-commit checker or something, too.
I wouldn't be sure about this. Did you actually test it? I would bet that git hooks are always executed from the repositories root directory!