Add window mode; implement basic split and jump commands.

Fix meaning of horizontal/vertical in API.