Commands moved to extra file; writing support

* Commands moved to own file.
+ Support for :w, :x/:wq and :xa/:wqa (although they behave a bit
  differently than under vim).