Add XBMC/Kodi jsonrpc port

+ change some var names
Badly construct HOST var