Add commands for fullscreening, maximising, minimising and restoring a window

Resolves #1206.