Frodo compatibility, debug mode

- basic compatibility with API of XBMC Frodo (did not care about backwards compatibility)
- added debugging method and use it in the request (logging can be enabled with setDebug(true))