Added a wrapper for the LoginDialog class.
Added the rest of the MainWindow API to allow the dialog to be set from Python.
Updated the main program to set a dialog created from Python.