IME config fixups.
Minor code cleanups.
Initial start for per-core configs.

Dirty, but only real way to do this on Android it seems.