Implement auto switching to Dvorak input

Functionality similar to vimim and smartim for Vim. When exiting insert
and replace mode, remembers the input method being used, and switch to
English input method to avoid giving faulty commands in normal state of
Evil.