Add astyle functionality to pre-commit hook script

It supersedes checkyear.sh while preserving all of its functionality.
Added astyle functionality is disabled by default and should be enabled
manually.