Make the window title configurable

Resolves #409