Some code clean-up and refactoring + adding NSIS include file for convenience.