Use brew cask for OS X apps

Also prefix brew commands with caffeinate to prevent sleep.