Major refactor to stabilize the app

1. Remove Windows service related code
2. Convert the app to windows form app
3. Stabilize the thread pool function
4. Improve logger function