Clone from https://gitorious.org/xbmcremote