[autotools] Use common/exceptions.hh instead of common/logging.hh.

Since logging pulled string.hh and string.hh pulled stuff from la (and thus
eigen) autotools were just not capable of coping^^ exceptions.hh pulls
nearly nothing and should be safe for the future...
[grid.boundaryinfo] removed deprecated include
[test.test_main] added