Fix bug in xapi host in config
Move demo command into separate handler