code: function authenticatedAction(data, socketSend) {
  		var type = data.type
  		switch(type) {
  		case 'getApps':
  			socketSend(godModel.getApps()) // does not fail and has no callback
  			break
  		case 'reload':
  			godModel.reload(result)
  			break
  		case 'nodebug':
  			type = 'run'
  		case 'run':
  		case 'stop':
  		case 'debug':
  		case 'restart':
  			godModel.write(data.app, type, result)
  			break
  		default:
  			log('Unknown command:', data)
  			socketSend({err: 'unknown command'})
  		}
  
  		function result(err) {
  			if (err) socketSend({err: err.message})
  		}
  	}
docs: /*
  A request received from a socket allowed to issue actions
  data: json object