Added MainWindow widget.
Added AuthoriaztionWindow widget.
Added authorization DB API.