iViewer can be used to control XBMC using the JSON-RPC Protocol with CommandFusion's JavaScript API using HTTP via XBMC's webserver.
All the required files and a detailed guide on how to set this up is available on the CommandFusion Github.