coding style configuration for AStyle applied

I compiled a configuration for AStyle and applied it to the current code base. In addition I made some manual changes regarding capitalization of constants and template typenames.
Single line for loops should be allowed.  Going from 6 lines to 24 is really excessive.