Add Code Coverage features to tests.

Add Code Coverage in the form of the 'simplecode' library for
local tests. The coveralls.io service will also be used when
building on Travis-CI.