added method to flush the dns cache on windows
Separated the insertion of firewall rules so that they can be attached to user actions instead of being linked to the connection events