[major] Windows Agent!!! (required logging refactoring and some bug fixes)