Replaced dbus_connection_read_write_dispatch() so multiple threads
can share the single DBus connection.

Also added a heartbeat and example python heartbeat monitor.