Move logic to testinput

Test Input code now mostly allows creation of device configs for
controllers.