Ensure we don't hang XBMC when closing

Signed-off-by: Steeve Morin <steeve.morin@gmail.com>
Change pulsard and jsonrpc host

Signed-off-by: Steeve Morin <steeve.morin@gmail.com>
Refactor main and ensure XBMC has been restarted before going in the menus

Signed-off-by: Steeve Morin <steeve.morin@gmail.com>