Move window-related command to window.go.

Add CommandImpl.ExpectedArgs to simplify commands implementation.