Added basic mode support, both normal and search.

The current mode is not shown anywhere, yet. The statusbar (Or the bottom
of the screen) should be changed to show the current mode, like VIM.