Fix XBMC API calls and add new commands