Added the integration between D-Bus and Glib's main loop.