New class style for common classes
Refactoring

Moved code to MainWindow definition; use threads for login and courses
synchronization