A Transition Radiation Detector And Gas Supply System For Ams