Manage tests with cmake, and make them parallelizable.
Merge pull request #236 from cgjones/manage-tests-with-cmake

Manage tests with cmake, and make them parallelizable.