Move some generic code into mock.ml

Signed-off-by: John Else <john.else@citrix.com>
Fix typo.

Signed-off-by: John Else <john.else@citrix.com>
Split the unit testing code up into separate modules.

Signed-off-by: John Else <john.else@citrix.com>
Create base unit test suite.

Signed-off-by: John Else <john.else@citrix.com>
Use a fresh Db_ref when creating a new mock database.

Signed-off-by: John Else <john.else@citrix.com>
Add a helper function to create a context with a fresh database.

Signed-off-by: John Else <john.else@citrix.com>
Move existing unit tests over to the OUnit suite.

Signed-off-by: John Else <john.else@citrix.com>
Turn on verbose unit test output.

Signed-off-by: John Else <john.else@citrix.com>
Update .gitignore.

Signed-off-by: John Else <john.else@citrix.com>
Hook existing unit tests up to OUnit.

Signed-off-by: John Else <john.else@citrix.com>
Rename unit test files.

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #1092 from johnelse/unify-unit-tests-clearwater

CLEARWATER: Move the existing unit tests into the OUnit suite.