Reflect refactoring of wsend on install script

...as they share a great amount of code
Merge pull request #3 from vannell/improvements

Reflect refactoring of wsend on install script
Tested out new install script, works very well, no change from user perspective from previous.