Add functions to auto switch to english input

non-english speaking users using evil-mode may face the problem of switching to their language during insert mode, and need to switch back to english input manually when entering normal mode. this commit solves the problem by defining default-im and prev-im variables and add functions and hooks to switch input method when exiting insert and replace modes.