Lots of changes for SAXS/WAXS especially mask

Synchronisation of mask parameters between two detectors. Plus other
stuff.