Rob Shearman : services: Split RPC_MainLoop into initialisation and the actual loop.