NuGet package restore fixing and crlf issues
Improved the enforce-formatting-rules script

* The crlf normalization added an incorrect cr char on non-empty final lines
* Added dependency on perl instead of sed since perl handles \n better
* Improved code style by extracting a main function
Fixed crlf endings and added license