add Makefile.tests_common

Contains common variables for all test Makefiles.
Include from test Makefiles.
Also clean up a bit.

The intent is to ease maintainability of the test Makefiles in the future and the immediate gain is to set QUIET per default now.