Merge pull request #2 from brenttaylor/master

Converted build system to CMake.
Fixed CMake defines
Adding initial unit testing

Reorganized existing (integration) testing code
Adding string tests/fixing string bugs
PactRef works now

Added and fixed various string functions