updating chrome app to current socket interface, cleaning up