copied custom-api.js into client/server files
updated narrative documentation and console logging
switched API Client to use document.write for injecting porthole
switched API Worker to use document.referrer for discerning client domain