Renamed XbmcWebSocket to XbmcWebSocketsApi
Refactored some code. Added sample/test pages.