Issue refs #1598: remove debug code, add allow-origin for test deploy site, update api-client