Initial automated testing infrastructure

This only includes a couple of tests but mostly
intends to set up HSpec-based testing toolchain.
Prepare to host CI on travis-ci.org
Explain where these credentials are coming from
Merge pull request #29 from michaelklishin/initial-specs

Initial specs
Add heartbeat support.