Travis: Prepare for OS X builds.

 * Use bot-ci script at to set up prebuilt dependencies.
 * Make CI scripts more consistent.
Merge pull request #1538 from fwalch/multi-os

Travis: Prepare for  OS X builds.