CMake - rebase + travis-ci integration

Rebased to BVLC/dev as asked by @jeffdonahue in #623. Working on CMake build to travis-ci integration.