Log the output of the script to a file and stdout

Thanks for the implementation, @pbrisbin.
Update mac

Rebuilding mac script with latest changes.
Update mac

Update mac script based on latest changes.
Update mac

Updating mac script with latest changes.
Update mac

Change ordering.
Update mac

Remove brew cask function. Switch to Ruby 2.1.2 after installing JRuby.
Update mac

Rebuilding mac script with latest changes.
Update mac

Updating mac script with latest changes.