Added connect dialog and working new game dialog.
Merged codebase.