Sets up an XMacro controller

This allows me to wrap some tests around the controller