GInputMethod: New class for implementing input method

D-Bus activatable applications and input methods share a large part of
the functionality.  This class represents an input method as a special
GApplication, so it can borrow various nice things from GApplication.