Reorganize testall in masterfiles so that it saves its environment.

This makes it much easier to call with the correct parameters directly
from the command line.
WIP