Add back IME advanced features (thanks to SlimRoms)

Change-Id: I36040cbbcb78cb1d20fd0f3e6f7cd2cc8c5a9644

Change-Id: I6b0f0916c15e9fae7523c3da029781c2ef9c56ba