Ssl version fix

My travis builds have been failing to submit to Coveralls and the reason is that it looks like https://coveralls.io/ has turned off SSLv3 support.

This commit fixes by setting ssl_version in the API request. The other two commits fix local tests and then fix a bug with travis tests that were causing the travis builds to fail. This current code passes the full build matrix in Travis.