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

Also fix code comments.
Merge pull request #11 from soundcloud/conor/gtest

Adding gtest to barn-agent.