Add gtest code to barn-agent.
Add the beginning of tests to barn-agent.

Also fix code comments.
Merge pull request #2 from typingduck/conor/gtest

adding gtest and tests