code: function(appConfig, appManifest) {
  
  		var container = jQuery(appConfig.root);
  
  		if (!container.is('.' + F2.Constants.Css.APP_CONTAINER)) {
  			container.find('.' + F2.Constants.Css.APP_CONTAINER);
  		}
  
  		if (!container.length) {
  			F2.log('Unable to locate app in order to establish secure connection.');
  			return;
  		}
  
  		var iframeProps = {
  			scrolling:'no',
  			style:{
  				width:'100%'
  			}
  		};
  
  		if (appConfig.height) {
  			iframeProps.style.height = appConfig.height + 'px';
  		}
  
  		var socket = new easyXDM.Socket({
  			remote: _secureAppPagePath,
  			container: container.get(0),
  			props:iframeProps,
  			onMessage: function(message, origin) {
  				// pass everything to _onMessage
  				_onMessage(appConfig, message, origin);
  			},
  			onReady: function() {
  				socket.postMessage(F2.Constants.Sockets.LOAD + F2.stringify([appConfig, appManifest], F2.appConfigReplacer));
  			}
  		});
  
  		return socket;
  	}
docs: Creates a socket connection from the container to the app using
  <a href="http://easyxdm.net" target="_blank">easyXDM</a>.
  @method _createContainerToAppSocket
  @private
  @param {appConfig} appConfig The F2.AppConfig object
  @param {F2.AppManifest} appManifest The F2.AppManifest object