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.
The script currently only works when committing from the repo's root directory.
To enhance this, I would inset a "cd `git rev-parse --show-toplevel`" here.