removed string repetition from logging
fix a small bug in conditionals:
var undefined = "I'm defined now" // is valid
so added wrapper/helper functions to prevent it
Merge branch 'master' of github.com:tamersaadeh/xbmc-api.js