Fixed window handling problems.

- Added Quit menu command to Mac version.
- Allocate document manager on the heap to avoid problems on application shutdown.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Add Game interface and some more menu commands.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>