Adding functions to install script

* add hook for $SHARE/vagrant.rc to allow for overrides
* move all the actions into functions
Merge pull request #10 from rmyers/better

Adding functions to install script