bus: Own a name on the DBus session bus

This makes it easier for third parties to track the ibus-daemon life
cycle.

BUG=http://code.google.com/p/ibus/issues/detail?id=1476
TEST=

Review URL: https://codereview.appspot.com/6374058
Patch from Rui Matos <tiagomatos@gmail.com>.
IBusBus: honor new connect-async prop in the socket monitor callback

I think we should make use of the async connection here if the
property is set.

But we also need a new flag for ongoing async connection attempts
because the socket monitor callback may be called several times before
the connection is established.

BUG=http://code.google.com/p/ibus/issues/detail?id=1482
TEST=

Review URL: https://codereview.appspot.com/6346090
Support dconf 0.13.4

TEST=Manually

Review URL: https://codereview.appspot.com/6426044
Fix double-unref when looping over attachment.

BUG=none

Review URL: https://codereview.appspot.com/6445057
Set proper error code when config daemon is not running.

BUG=none

Review URL: https://codereview.appspot.com/6453076
conf: cleanup GError usage

- there are missing g_error_free
- some code assume error != NULL when setting *error
- src/tests/ibus-config.c has unconditional "unset" but it checks the return value

BUG=none

Review URL: https://codereview.appspot.com/6449103
conf: always build ibus-memconf for testing

BUG=none

Review URL: https://codereview.appspot.com/6457087
Fix testcase failure when IBus is not installed.

BUG=none

Review URL: https://codereview.appspot.com/6455068
Do not use deprecated glib function g_atexit().

BUG=http://code.google.com/p/ibus/issues/detail?id=1489

Review URL: https://codereview.appspot.com/6454158
engine: delay D-Bus name request after factory creation

BUG=none

Review URL: https://codereview.appspot.com/6441157
Fix to load the system gvdb with $DCONF_PROFILE in dconf 0.13.4

BUG=RH#844580
TEST=Manually

Review URL: https://codereview.appspot.com/6446145
tests: add engine-switch test

Moved engine specific test from ibus-bus.c to a separate
file, so that it can be conditionally built depending on
--enable-engine.

Also do not register duplicate engine when loading component files.
This is for the case when two engine descs with the
same name are in different directories in IBUS_COMPONENT_PATH.

BUG=none

Review URL: https://codereview.appspot.com/6480052
Fix the last commit.

Forgot to git add ibus-engine-switch.c.

Review URL: https://codereview.appspot.com/6480052
tests: fix "make check" with dash

/bin/dash does not support ERR trap signal and ">&" redirect.  Also
fix copying non-existing component file.

BUG=none

Review URL: https://codereview.appspot.com/6478058
Cleanup the vala code of gtk3 panel and tool by:

- using config.vapi
- omitting unnecessary "using X"

Also localize ibus tool and make the argument handling better.

BUG=none

Review URL: https://codereview.appspot.com/6496066
gtk3: Call XIGrabKeycode directly from Vala

Port the logic of grabkeycode.c into Vala.  This will make it easier to
implement XI2 GenericEvent handling in KeybindingManager.

BUG=none

Review URL: https://codereview.appspot.com/6501080
Prevent IME menu being empty when focus out

Previously ibus-daemon did not make fake_context focused when focus-out, while it is supposed to do.

BUG=none

Review URL: https://codereview.appspot.com/6492086
Use gdk_threads_add_idle_full() in gtkimmodule to avoid race condition in some multi-threaded apps.

BUG=http://code.google.com/p/ibus/issues/detail?id=1505

Review URL: https://codereview.appspot.com/6488104
ibus-daemon: trigger engine to send RegisterProperties when panel appears

BUG=none

Review URL: https://codereview.appspot.com/6506094
Add IBusProperty.symbol for the short label.

IBusProperty.label had been shared between the panel menu label and
language-bar button label so the label is too short against the panel menu.
Now we redefines IBusProperty.label as the long label and the new
IBusProperty.symbol is defined as the short label for the language-bar
and the panel status icon.

TEST=Manually

Review URL: https://codereview.appspot.com/6495117