Update to latest TS and fix the TS build.
Adds self.scriptCache in service worker global scopes. Refs #193
Address #190: change to Client.postMessage(message, transfer)