code: function() {
  
  		var appConfig; // socket closure
  		var isLoaded = false;
  		// its possible for messages to be received before the socket load event has
  		// happened.  We'll save off these messages and replay them once the socket
  		// is ready
  		var messagePlayback = [];
  
  		var socket = new easyXDM.Socket({
  			onMessage: function(message, origin){
  
  				// handle Socket Load
  				if (!isLoaded && _rSocketLoad.test(message)) {
  					message = message.replace(_rSocketLoad, '');
  					var appParts = F2.parse(message);
  
  					// make sure we have the AppConfig and AppManifest
  					if (appParts.length == 2) {
  						appConfig = appParts[0];
  
  						// save socket
  						_apps[appConfig.instanceId] = {
  							config:appConfig,
  							socket:socket
  						};	
  
  						// register app
  						F2.registerApps([appConfig], [appParts[1]]);
  
  						// socket message playback
  						jQuery.each(messagePlayback, function(i, e) {
  							_onMessage(appConfig, message, origin);
  						});
  						
  						isLoaded = true;
  					}
  				} else if (isLoaded) {
  					// pass everyting else to _onMessage
  					_onMessage(appConfig, message, origin);
  				} else {
  					//F2.log('socket not ready, queuing message', message);
  					messagePlayback.push(message);
  				}
  			}
  		});
  	}
docs: Creates a socket connection from the app to the container using
  <a href="http://easyxdm.net" target="_blank">easyXDM</a>.
  @method _createAppToContainerSocket
  @private