fix key check, enumeration error and update API_PATH
Merge branch 'master' of https://github.com/Giacom/xbmc