Moving to promises and tidying up cod also pointing to webperf-lib-psi