register and activate input source.
fix warnings.
activate input source as current user, to fix googlecode Issue 419.

otherwise, the input source will be inactive after logging out.