Fixed issue #6

Version 0.5:
Cleaner and more generic algorithm for switching layout when leaving
Insert mode: there is no default keyboard layout in Normal mode any
more; instead last layout that was actual when entering Insert mode is
being restored when leaving Insert mode.