Add cobertura and coveralls support

This is a cherrypick of #43 all credits go to @stephanenicolas for this PR.

closes #43.