Added PeriodicTimer

- Added PeriodicTimer to replace Threading.Tasks.Timer
- Implemented PeriodicTimer in MainViewModel and ChatViewModel