Add window mode; implement basic split and jump commands.

Fix meaning of horizontal/vertical in API.
Merge pull request #21 from dtcaciuc/master

Add window mode; implement basic split and jump commands.