Some refactoring.
Added NSIS plugin.