Upgraded to socketIO v1 and did some cleanup.