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 tested the script directly.
In the past, I _had_ problems with commit-hooks _not_ being executed from the repo's root. So, even if this behaviour is fixed in new versions of git, including it doesn't hurt.