Test coverage on coveralls.io

The changes add test coverage to the build and upload the results to coveralls.io. It works on the branch on my fork but wont work on master until the repository is registered with coveralls.
-Mark