Add createFileWriter and createTmpFileUrl to ResourcesLoader
Re-write server in JS via chrome.socket.