Add infrastructure to allow testing of CTRP API calls. Also, adopt CTRP dose response.js code