Add .coveralls.yml;
Add base test to rake task list;
Fix reporting of exceptions;
report EINPROGRESS for tcp if not successful;
Adjust how port is determined for http.