Preliminary unit testing setup using Google C++ Testing Framework.

Including tests for the fixes of 595d265 and 3c73b9f.

Conflicts:
	CMakeLists.txt
Move @cwalther's tests into new dir scheme.
make check working, 1 test app per library
Merge pull request #2 from dpogue/tests

Tests