IME: Add basic interface needed for IME support.

This CL adds basic implementation of the interface needed for IME
support. Actual implementation will be added in followup patches.