More refactoring

- Do more work in Windows networking code
- Start to work on time management code