Bug 906096 - Switch InputMethod to WebIDL in IME tests and FF Nightly

Relanding gaia parts of bug 906096 again. It's all the codez from mozilla-b2g/gaia#12062 but it keeps using onfocuschange for the value_selector.