Enforce coding style with astyle.

- Add githooks and astyle configuration that resembles our old standard fairly closely
- Add Makefile for common tasks: setup, clean, format
- Format code according to the new standard

Closes #82.