modify platform to run in chrome app, using chrome socket and storage api's