XAS-172 use Factory design pattern to ensure the the objects controlling XAS scans are constructed properly

added to b18, i18 and bm26a beamlines so far.