code: function finishDaemonIfNeeded(config, prop, prefix, appName, baseTemplate, appTemplates) {
  	if (config.isDaemon || config.serverMode === 'api') {
  		let ControllerTemplate = AmorphicContext.applicationTSController[appName] ||
  			appTemplates[prop].Controller;
  
  		if (!ControllerTemplate) {
  			throw new Error('Missing controller template in ' + prefix + prop + '.js');
  		}
  		startDaemon(baseTemplate, ControllerTemplate);
  		logMessage(appName + ' started as a daemon');
  	}
  }
docs: Build the base template based on the app config.
  
  @param {Object} config - The app specific config from the config store.
  @param {String} prop - unknown
  @param {String} prefix - unknown
  @param {String} appName - The app name.
  @param {Object} baseTemplate - unknown
  @param {Object} appTemplates - unknown