Mainpage update

1. Download courses info.
2. Background thread handling loading data from db.
3. Better login experience.