delaying socket.io init to deviceready to fix phonegap crashes