Run apt-get update as needed, and install add-apt-repository if needed.
Merge pull request #22 from cablelabs/more-dependency-fixes-for-ubuntu

Run apt-get update as needed, and install add-apt-repository if needed.