Allocate an IMContext.
References scim_bridge_client_imcontext_set_preedit_shown(), scim_bridge_client_imcontext_update_preedit(), scim_bridge_pdebugln(), and scim_bridge_perrorln().